Re: same rewrite for several vhosts on 404 errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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.

/"//Note that, by default, rewrite configurations are not inherited. This means that you need to have a |RewriteEngine on| directive for each virtual host in which you wish to use it."

/Can someone tell me if that's the better way of doing it, indeed?



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.

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 put it, because i don't wanna configure it for each vhost.

Is there a way to do it?

Thanks for your help.


Luís Fernando Alén Gonçalves.




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




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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux