httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <Owen.Bo...@six-group.com>
Subject RE: [users@httpd] 404's to robots.txt?
Date Thu, 23 Jul 2009 08:18:02 GMT
> -----Original Message-----
> From: Evan Platt [mailto:evan@espphotography.com] 
> Sent: Wednesday, July 22, 2009 10:44 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] 404's to robots.txt?
> 
> At 06:03 PM 7/21/2009, you wrote:
> 
> >More than 1 docroot / log %{Host}i ?
> 
> Ahh.. I believe that's it! Thank you and the others who suggested 
> that, I believe that's it - I have a few subdomains I rarely use...
> 
> My current httpd.conf is:
> 
> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i 
> \"%{User-agent}i\" combined
> 
> Is there a better format ...

It's right above you... >>> %{Host}i <<< logs the Host header from the
request, eg:

LogFormat "%h %l %u %t %{Host}i \"%r\" %>s %b \"%{Referer}i 


> for that so instead of:
> 
> 1.2.3.4 - - [22/Jul/2009:13:31:28 -0700] "GET /images/favicon.ico 
> HTTP/1.1" 200 1150
> 
> I'd get
> 
> 1.2.3.4 - - [22/Jul/2009:13:31:28 -0700] "GET 
> www.mydomain.com/images/favicon.ico HTTP/1.1" 200 1150
> 
> I do have a few rarely used subdomains - but anything .mydomain.com 
> goest to my apache.
> 
> Thanks. :) 
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
 
This message is for the named person's use only. It may contain confidential, proprietary
or legally privileged information. If you receive this message in error, please notify the
sender urgently and then immediately delete the message and any copies of it from your system.
Please also immediately destroy any hardcopies of the message. 
The sender's company reserves the right to monitor all e-mail communications through their
networks.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message