Name & IP based vhost

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

Name & IP based vhost

Postby wanttoshop » 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
wanttoshop
 
Posts: 12
Joined: 03. February 2008 17:15

Postby Milligan » 16. March 2008 05:14

Last edited by Milligan on 17. July 2008 05:44, edited 2 times in total.
Milligan
 
Posts: 136
Joined: 03. March 2008 06:23

Postby wanttoshop » 16. March 2008 05:23

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
wanttoshop
 
Posts: 12
Joined: 03. February 2008 17:15


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 57 guests