Re: [us...@httpd] same rewrite for several vhosts on 404 errors

2009-10-26 Thread Luis Fernando
André, I typed it wrong, sorry. Actually, i wanted to type "sites-enable". And yes, i know all about the "a2ensite" and "a2dissite" commands and its interesting features. Well, maybe i can put it on an include. That's not a bad idea. But what i still want to avoid is repeating configuration

Re: [us...@httpd] same rewrite for several vhosts on 404 errors

2009-10-26 Thread André Warnier
Luis Fernando wrote: Hello guys. I use apache2 on debian and i have several vhosts in /etc/apache2/sites-available, included by /etc/apache/apache2.conf. Not really : what is really included, are the files present in /etc/apache2/sites-enabled. These are symlinks to the files that are in /

Re: [us...@httpd] same rewrite for several vhosts on 404 errors

2009-10-26 Thread Luis Fernando
Ok, i almost figured it out. I added the rewrite rule to the server config and inserted these two lines on each vhost: RewriteEngine On rewriteOptions inherit It works, but it's not what i want yet... On apache docs i've read that rewrite configurations aren't inherited by default. /"//N

[us...@httpd] same rewrite for several vhosts on 404 errors

2009-10-26 Thread Luis Fernando
Hello guys. I use apache2 on debian and i have several vhosts in /etc/apache2/sites-available, included by /etc/apache/apache2.conf. Well, i need to redirect requests to all vhosts's non existing documents to a specific page. I already know the needed rule. What i need to know is where to p