Page 1 of 1

Name & IP based vhost

PostPosted: 16. March 2008 03:30
by wanttoshop
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

PostPosted: 16. March 2008 05:14
by Milligan

PostPosted: 16. March 2008 05:23
by wanttoshop
Síofra

Thanks for the promp reply.

I have done some reading on the ssl and will generate a certificate request soon. I just needed to know if I was close :) We will decide on a store name in the next few days and then register it and try things out.

I will report back soon with good news I hope.

Thank you for your kind help,

George