Hi,
I am using the apache module mod_rewrite and the virtual document root
module that provides the virtual document root apache directive.
Problem is that if i use virtual document root for my virtual domains
then I canot use the url rewrite mechanism. I just tried it out in
various combinations.
I know this is a mod_perl list, but does anyone know the list address of
apache so I can see if anyone else has encountered this problem?
Or have any of you ran into this problem?
Thanks
Sample from my apache configuration.
##
## Legacy mass virtual hosting.
##
# Own Site (remembered www, use significant part)
<VirtualHost *:80>
UseCanonicalName Off
ServerAlias www.*.*
RewriteEngine On
RewriteRule ^/media/(.*)$ ${MEDIA_HOST}$1
RewriteRule ^/(.*)([-.])(app|page)(.*) /engine.pl/$1$4
VirtualDocumentRoot /home/httpd/sites_index/%2.1/%2.2/%0/
</VirtualHost>
# Own Site (remembered www, use significant part)
<VirtualHost *:80>
UseCanonicalName Off
ServerAlias my.*.*
RewriteEngine On
RewriteRule ^/(.*)([-.])(app|page)(.*) /engine.pl/$1$4
RewriteRule ^/media/(.*)$ ${MEDIA_HOST}$1
VirtualDocumentRoot /home/httpd/sites_index/%2.1/%2.2/%0/
</VirtualHost>
# Own Site (forgot www, first part is significant)
<VirtualHost *:80>
UseCanonicalName Off
ServerAlias *
RewriteEngine On
RewriteRule ^/(.*)([-.])(app|page)(.*) /engine.pl/$1$4
RewriteRule ^/media/(.*)$ ${MEDIA_HOST}$1
VirtualDocumentRoot /home/httpd/sites_index/%1.1/%1.2/%0/
# I have to remove the previosu line and add a real document
root to line to get rewrite to work
</VirtualHost>
Tyler.