Apache VirtualHost dynamic drive letter

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Apache VirtualHost dynamic drive letter

Postby YehudaDe » 10. November 2011 18:55

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
YehudaDe
 
Posts: 1
Joined: 10. November 2011 18:17
Operating System: Windows XP SP3

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 83 guests