httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmora...@atea.es
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

         </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


Mime
View raw message