Hello,
I've installed apache for windows, perl, and mysql on my spare xp box
(2.8ghz 2gb ram, two 250gb drives), my problem is this, I only want to run 2
sites, but we only have one ip address, and I've read up on it, but Im
totally lost, can anyone tell me what I have to put in my htttp.conf file
in this area:
# 127.0.0.1 is the TCP/IP local loop-back address, often named localhost.
Your
# machine always knows itself by this address. If you use Apache strictly
for
# local testing and development, you may use 127.0.0.1 as the server name.
#
ServerName mydomain1.com
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at <URL:http://www.apache.org/docs/vhosts/>
<BEEN THERE, DIDNT HELP MUCH
# 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 MYDOMAIN2.com
#
# 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 mydomain2:80>
ServerAdmin webmaster@mydomain2
DocumentRoot /www/docs/mydomain2.com
ServerName imydomain2.com
ErrorLog logs/mydomain2.com-error_log
CustomLog logs/mydomain2.com-access_log common
</VirtualHost>
Is this correct and once the domain2 propegates then it will find the site?
And would you do this if I wanted to add a third domain
|