You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by fm...@atea.es on 2007/12/05 12:59:19 UTC
[users@httpd] Errorlog/customlog for differents directories
How can I do it without using VirtualHost?
I only have a ServerName, but I need to get Errorlog and customlog files
of various directories
Alias /main "/var/www/main/"
<Directory /var/www/main>
Options Indexes FollowSymLinks MultiViews
AllowOverride FileInfo
RewriteEngine on
RewriteBase /main
RewriteRule ^([0-9a-z_/.]+)/images/([0-9a-z/._]+)$ images/$2
RewriteRule ^([0-9a-z_/.]+)/style/([0-9a-z/._]+)$ style/$2
RewriteRule ^([0-9a-z_/.]+)/js/([0-9a-z/._]+)$ js/$2
# ErrorLog /var/log/httpd/main-error_log
# CustomLog /var/log/httpd/main-access_log combined
</Directory>
...
Alias /main "/var/www/second/"
<Directory /var/www/second>
---------------------------------------------------------------------
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