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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx