View Full Version : Help setting up multiple web servers on a network
coreyk67
March 21st, 2006, 09:13 PM
I have a DVR surveillance server running on 1 box in my shop. I would like to dedicate another box to hosting 2 of my websites. Can someone point me in the right direction on how I can accomplish this? I have dynamic dns setup for the dvr server and plan on having dynamic dns for the websites as well.
I have successfully ran a single website on a server but i have never done multiple servers.
thanks corey
www.fix-my-laptop.com (http://www.fix-my-laptop.com)
www.ftbendpc.com (http://www.ftbendpc.com)
degsy
March 22nd, 2006, 10:12 AM
Web webserver are you using?
What OS?
coreyk67
March 22nd, 2006, 04:54 PM
I'm using Apache 2.2 on Win XP Pro.
degsy
March 22nd, 2006, 06:10 PM
You can setup virtual hosts in the apache config file.
It will redirect on domain name
e.g.
http.conf - Original
### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs-2.0/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
Edited to allow Virtual Hosts
### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs-2.0/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@site.net
DocumentRoot site.net/webroot/
ServerName site.net
ErrorLog logs/site.net-error_log
CustomLog logs/site.net-access_log common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@site.com
DocumentRoot site.com/webroot/
ServerName site.com
ErrorLog logs/site.com-error_log
CustomLog logs/site.com-access_log common
</VirtualHost>
coreyk67
March 24th, 2006, 01:00 AM
thanks.... that is what im looking for.