Page 1 of 1

question about to run more then 1 domain

PostPosted: 01. July 2006 16:07
by mastercrypt
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

PostPosted: 01. July 2006 20:44
by WooshMan
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