Welcome to Server Circle. It's a friendly site and all levels of experience are welcome. Be aware that we use cookies for your login.
Server Circle - Ask questions about Servers and get answers from experts.
Beta (0.05 sec)
Apache mod_rewrite and VirtualHosts Question

Using Apache 2.064 on Ubuntu 11.4 Natty Narhwal, I'm having problems with mod_rewrite, in that configuration settings from the main server context are not inherited by virtual hosts.

It's causing some Apache to do some very strange things.
Asked by:
BonoEstente
1464 points
 Report Abuse
 Share Page - Category: Linux Servers - Tags: Apache mod_rewrite and VirtualHosts Question
 Enter your response
Please use Pastie.org to paste lengthy code or to fix formatting issues with code
  • Responses in reverse (1)

To make the main server settings apply to virtual hosts, you must place the following directives in each section:



RewriteEngine On

RewriteOptions Inherit


Response by:
MrAnderson
759 points


  • Related Questions
About Us : Contact Us : Etiquette : Terms : CDN Failover : ShorterURL : CDN Fallback : © 2013 Server Circle