virtual hosts and rewrite rules

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

 



Hi

I have an apache instance where I defined several rewrite rules and ProxyPassReverse that redirects to other web applications.

I added a virtual host in the conf file 

NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin you@xxxxxxxxxxx

DocumentRoot "/usr/local/apache2/htdocs"
</VirtualHost>

RewriteEngine On
RewriteRule ….

ProxyPass …
ProxyPassReverse…

<VirtualHost *:80>
….
</VirtualHost>

Now with this new virtual host, the rewrite rules are not working and I get broken links. I had to comment all the VirtualHost settings.
I thought that the rewrite rules will still work on the default virtual host but apparently no.
What is missing if I want the rewrite rules to affect the default virtual host?

thanks



      

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