Image

Imagebloc07 wrote in Imageapache

logging of virtual hosts

Can I have multiple vhosts using the same log files or will they get in each others way. Something like this.

[Error: Irreparable invalid markup ('<virtualhost 82.134.237.142:80>') in entry. Owner must fix manually. Raw contents below.]

Can I have multiple vhosts using the same log files or will they get in each others way. Something like this.

<VirtualHost 82.134.237.142:80>
ServerName bloc.com:80
ServerAlias www.bloc.com
DocumentRoot /home/httpd/vhosts/bloc.com/httpdocs
CustomLog /home/httpd/vhosts/bloc.com/statistics/logs/access_log combined
ErrorLog /home/httpd/vhosts/bloc.com/statistics/logs/error_log
</VirtualHost>

<VirtualHost 82.134.237.142:80>
ServerName sub.bloc.com:80
ServerAlias www.sub.bloc.com
DocumentRoot /home/httpd/vhosts/bloc.com/sub/httpdocs
CustomLog /home/httpd/vhosts/bloc.com/statistics/logs/access_log combined
ErrorLog /home/httpd/vhosts/bloc.com/statistics/logs/error_log
</VirtualHost>