Two questions
Michael Stearns` (mstearns@oregon.uoregon.edu)
Fri, 15 Nov 1996 06:04:13 -0800
Hi.
I work at the University of Oregon Computing Center.
I am new to wwwstat and to Perl. Thanks, Roy, for providing this great
tool.
My site(run with the Apache Server) is sitting on a server called
darkwing.uoregon.edu and is set up with the CNAME cc.uoregon.edu. My
system administrator has set up a separate log file call
/httpd/logs/access_log.cc.
This seems to have presented two problems that I am not sure how to
solve.
If you look at my test page at
darkwing.uoregon.edu/~mstearns/stattest.html, you will see in the
Archive/URL section that the pages are listed individually as they
should be. The problem is, that the links don't really work. The log
lists pages relative to cc.uoregon.edu, but the script - I think -
builds the links relative to the root level of the server by inserting
the "/". I would like to get cc.uoregon.edu built into these links. I
can't see how to modify the wwwstat.rc file to do this. I have modified
the PERL script with
# $pathkey = 'cc.uoregon.edu' . $pathkey;
This works somewhat: It list the proper page name, but the part of the
script that builds the link gets broken and no link is made on the page.
Do you know the best way to address this situation so the links on my
stat page will work properly.
Question 2:
I am going to need to blend together the "access_log.cc" along with the
entries in the main "access_log" which reflect the users who hit the
pages by entering the "actual" URL,
"http://darkwing.uoregon.edu/~cchome/ as opposed to the C-NAME.
Are there any examples of how to do this or any suggestions.
Thanks for your time and help,
Michael Stearns