Name & IP based vhost
Posted: 16. March 2008 03:30
I have a static IP on Win XP Pro, just about decided on a store name to register. I want to use name based vhost for my test stores. and use IP based for my live store. will the config I have here work and are there any security issues with it?
NameVirtualHost *:80
<VirtualHost 127.0.0.1:80>
ServerName localhost
DocumentRoot "C:/xampp/htdocs"
<Directory "C:/xampp/htdocs">
Options Indexes FollowSymLinks Includes ExecCGI
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
## My 1st name based vhost, wont be live but for store testing
<VirtualHost *:80>
ServerAdmin webmaster@myteststore1.com
DocumentRoot C:/xampp/htdocs/myteststore1.com
ServerName myteststore1.com
ServerAlias www.myteststore1.com
ErrorLog @rel_logfiledir@/myteststore1.com-error_log
CustomLog @rel_logfiledir@/myteststore1.com-access_log common
</VirtualHost>
## My 2nd name based vhost, wont be live but for store testing
<VirtualHost *:80>
ServerAdmin webmaster@myteststore2.com
DocumentRoot C:/xampp/htdocs/myteststore2.com
ServerName myteststore2.com
ServerAlias www.myteststore2.com
ErrorLog @rel_logfiledir@/myteststore2.com-error_log
CustomLog @rel_logfiledir@/myteststore2.com-access_log common
</VirtualHost>
## My IP based vhost, will be live store with SSL
<VirtualHost xx.xxx.xxx.xxx:80> I put my ip here
ServerName xx.xxx.xxx.xxx and here
ServerAlias www.mystorelive.com
DocumentRoot "C:/xampp/htdocs/mystorelive"
<Directory "C:/xampp/htdocs/mystorelive >
Options Indexes +FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ "C:/xampp/htdocs/mystorelive/cgi-bin/"
ServerAdmin serveradmin@mystorelive.com
CustomLog logs/mystorelive.log combined
ErrorLog logs/mystorelive_error.log
LogLevel error
</VirtualHost>
Thanks in advance,
George
NameVirtualHost *:80
<VirtualHost 127.0.0.1:80>
ServerName localhost
DocumentRoot "C:/xampp/htdocs"
<Directory "C:/xampp/htdocs">
Options Indexes FollowSymLinks Includes ExecCGI
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
## My 1st name based vhost, wont be live but for store testing
<VirtualHost *:80>
ServerAdmin webmaster@myteststore1.com
DocumentRoot C:/xampp/htdocs/myteststore1.com
ServerName myteststore1.com
ServerAlias www.myteststore1.com
ErrorLog @rel_logfiledir@/myteststore1.com-error_log
CustomLog @rel_logfiledir@/myteststore1.com-access_log common
</VirtualHost>
## My 2nd name based vhost, wont be live but for store testing
<VirtualHost *:80>
ServerAdmin webmaster@myteststore2.com
DocumentRoot C:/xampp/htdocs/myteststore2.com
ServerName myteststore2.com
ServerAlias www.myteststore2.com
ErrorLog @rel_logfiledir@/myteststore2.com-error_log
CustomLog @rel_logfiledir@/myteststore2.com-access_log common
</VirtualHost>
## My IP based vhost, will be live store with SSL
<VirtualHost xx.xxx.xxx.xxx:80> I put my ip here
ServerName xx.xxx.xxx.xxx and here
ServerAlias www.mystorelive.com
DocumentRoot "C:/xampp/htdocs/mystorelive"
<Directory "C:/xampp/htdocs/mystorelive >
Options Indexes +FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ "C:/xampp/htdocs/mystorelive/cgi-bin/"
ServerAdmin serveradmin@mystorelive.com
CustomLog logs/mystorelive.log combined
ErrorLog logs/mystorelive_error.log
LogLevel error
</VirtualHost>
Thanks in advance,
George