|
|
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. |
|
There is no answer at this time. |
|
There are no comments at this time. |
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 Home - Answers FAQ - Terms of Service - Privacy Policy |