I also use a virtual hosts setup:
- Code: Select all
<VirtualHost *:80>
DocumentRoot "E:\xampplite\htdocs"
ServerName jonweb
<Directory "E:\xampplite\htdocs">
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride AuthConfig FileInfo
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
#<VirtualHost *:80>
# DocumentRoot "K:\xampplite\htdocs"
# ServerName jonweb
# <Directory "K:\xampplite\htdocs">
# Options Indexes Includes FollowSymLinks MultiViews
# AllowOverride AuthConfig FileInfo
# Order allow,deny
# Allow from all
# </Directory>
#</VirtualHost>
The second is commented out because sometimes the USB is the "K:\" drive and other times it is "E:\". Apache won't run if it is wrong.
How do I make the virtual host dynamic to account for the change?