Page 1 of 1

Apache VirtualHost dynamic drive letter

PostPosted: 10. November 2011 18:55
by YehudaDe
Hi,

I have 2 local development directories, each with multiple virtual hosts, and I need sometimes to switch between them without changing the settings besides the drive letter.
I tried using Define
Code: Select all
Define VDrive D
DocumentRoot ${VDrive}:/www/hostname

But when I check it with the command httpd.exe -S, I get this error
Code: Select all
Syntax error on line 28 of C:/xampp/apache/conf/extra/httpd-vhosts.conf:
Invalid command 'Define', perhaps misspelled or defined by a module not included
 in the server configuration


I searched already the internet and the documentation.
I also checked alternative solutions, I need to use variables.
Any ideas?

Yehuda