httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [users@httpd] Errorlog/customlog for differents directories
Date Wed, 05 Dec 2007 11:59:19 GMT
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


        Alias /main "/var/www/second/"

         <Directory /var/www/second>

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message