Forum Moderators: DixonJones

Message Too Old, No Replies

wusage and subdomains

How do I fix my access logs? Ack!

         

ThatAdamGuy

11:56 am on Jan 24, 2003 (gmt 0)

10+ Year Member



Hi there,

I recently added a blog to my site and created a special subdomain for it -- blog.mysite.com

Problem is... in my access logs, page hits to my blog are being treated as if they're coming from the root!

So, for instance, when someone goes to [blog.mysite.com...] it shows up in my log as /archives/index.htm :(

Then, when wusage gets to it and tries to grab title and other file info, I get a ton of 404's from wusage trying to find [mysite.com...] -- not to mention the havoc this sort of misinfo wreaks upon my stats!

Of course, ideally, I'd want to figure out how to do one of the following:

- have my blog hits recorded in my access log as as /blog/whatever/whatever.htm

OR

- have a separate logfile created (my hosting provider has refused to do this, telling me I'd need to upgrade to a dedicated server!)

OR

- somehow figure out a way to have wusage figure out what directories are in subdomains and react accordingly

Thanks for any advice you can offer!

ThatAdamGuy

10:24 pm on Feb 7, 2003 (gmt 0)

10+ Year Member



Okay, in case anyone else is interested, I thought I'd share the solution:

Had this line added to my site's httpd.conf file:
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{HOST}i\" \"%{Referer}i\" \"%{User-agent}i\" \"%{Cookie}n\""

That did the trick.