Forum Moderators: phranque
I'm running apache 2 on windows. I have the following virtual host directive in my http.conf :
NameVirtualHost *:80 <VirtualHost *:80>
ServerName *.mydomain.com
DocumentRoot c:/web/mydomain/public/
<Directory c:/web/mydomain/public/>
Options ExecCGI FollowSymLinks
AllowOverride all
Allow from all
Order allow,deny
</Directory>
</VirtualHost>
my php application parses the request headers and displays custom content based on the subdomain.
However, I was wondering if it's possible to maintain a seperate access log for each subdomain even though there's only one virtual host? Would it be possible to have apache create an access log for each subdomain? so requests for foo.mydomain.com get logged to foo.log and bar.mydomain.com would go to bar.log etc..
failing that, would it be possible to add the subdomain to the access logs using a CustomLog directive?
thanks for your help
dave