question about to run more then 1 domain

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

question about to run more then 1 domain

Postby mastercrypt » 01. July 2006 16:07

is there a script to controle domains with ??like in miniportal ..i am to dumb to make changes in httpd :-( can someone please help me love to use this XAMPP :-) :oops:

Sincerly Lars Denmark
LB
mastercrypt
 
Posts: 16
Joined: 30. June 2006 20:46
Location: Denmark

Postby WooshMan » 01. July 2006 20:44

A script to control domains in what way?

I host 4 domains sometimes more without any problems.

Open your apache/conf/extra folder and edit http-vhosts.conf file


##################################
NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot d:/xampp/xampp/htdocs
ServerName localhost
</VirtualHost>

###########################################
<VirtualHost *:80>
ServerName www.domain1.co.uk
ServerAlias domain1.co.uk *.domain1.co.uk
ServerAdmin admin@domain1.co.uk
DocumentRoot d:/web/www.domain1.co.uk

Alias /cgi-bin/ "d:/web/www.domain1.co.uk/cgi-bin/"

<Directory "d:/web/www.domain1.co.uk">
Options ExecCGI Includes FollowSymLinks
Options +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

###########################################



<VirtualHost *:80>
ServerName www.domain2.co.uk
ServerAlias domain2.co.uk *.domain2.co.uk
ServerAdmin admin@domain2.co.uk
DocumentRoot d:/web/www.domain2.co.uk

Alias /cgi-bin/ "d:/web/www.domain2.co.uk/cgi-bin/"

<Directory "d:/web/www.domain2.co.uk">
Options ExecCGI Includes FollowSymLinks
Options +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
####################################

That will leave localhost to access xampp and the other two will be two different domains / websites.

Hope that helps.

Woosh
WooshMan
 
Posts: 33
Joined: 10. November 2005 23:03


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 60 guests