Hello I have a small problem with my apache server. I work with CentOS 5.4 with httpd-2.2.3-31I have multiple virtual directories and several VirtualHosts. Each VirtualHost has on the "CustomLog" so that will generate a log for each virtualhost.
My problem is when trying to access any virtual directory under the name of my server. example: http://centos.home.cu/stats save the access log in the logs of the first VirtualHost I declared.
should not be stored in access_log? who i can fix this?If you disable the first virtualhost then the same with the second that follows.
This is my settings on the Logs and VirtualHost: ErrorLog logs/error_log LogLevel warnLogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent CustomLog logs/access_log combined <VirtualHost *:80> DocumentRoot /var/www/html/site/ ServerName www.home.cu ServerAlias www.home.com ServerAdmin webmaster@xxxxxxx CustomLog /var/log/httpd/site.log combined <Directory "/var/www/html/site/"> AllowOverride None Options FollowSymLinks MultiViews Order Allow,Deny Allow from all </Directory> </VirtualHost> Thanks ---------------------------------------------- Webmail, servicio de correo electronico Casa de las Americas - La Habana, Cuba. --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx