Google Answers Logo
View Question
 
Q: Apache mod_vhost_alias and mod_rewrite ( No Answer,   0 Comments )
Question  
Subject: Apache mod_vhost_alias and mod_rewrite
Category: Computers > Programming
Asked by: waynesimonsen-ga
List Price: $24.50
Posted: 17 Dec 2005 15:38 PST
Expires: 16 Jan 2006 15:38 PST
Question ID: 606929
I am experimenting with Apache on Windows XP. I have it installed at
its default location but I have the DocumentRoot changed to F:/www/. I
have mod_rewrite and mod_vhost_alias enabled. I am trying to have
Virtual Subdomains for each directory in my DocumentRoot. I have the
following VirtualHost set up and it works fine. I am wondering how to
do rewriting inside of the VirtualHost.
 <VirtualHost *:80>
  UseCanonicalName off
  VirtualDocumentRoot "F:/www/%0"
  VirtualScriptAlias "F:/www/%0/cgi-bin"
</VirtualHost> 
The specific rewrite I am trying to do is 
wayne.waynesimonsen.com/login/ =>
F:/www/wayne.waynesimonsen.com/index.php?action=login
It needs to change for each user so a different index.php is run
depending on the user.
When I look at the logs for the rewriting, it is prefixing the
documentroot. It needs to prefix the VirtualDocumentRoot.
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy