Apache Server configuration support - apache 1.3 on windows xp question

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > September 2005 > apache 1.3 on windows xp question





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author apache 1.3 on windows xp question
GamePlayer No. 1058

2005-09-30, 5:59 pm

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 should I repeat the above if I wanted to add more domains, I have quite
a few that dont get much traffic at all so I figure this Windows XP box
thats just laying around can ahandle it.



HansH

2005-09-30, 5:59 pm

"GamePlayer No. 1058" <NOSPAMREADER@YAHOO.COM> schreef in bericht
news:3fe%e.8257$Zg.1137@tornado.socal.rr.com...
> 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:


> # Please see the documentation at \
> :http://www.apache.org/docs/vhosts/>
> BEEN THERE, DIDNT HELP MUCH


> #
> # Use name-based virtual hosting.
> #
> NameVirtualHost MYDOMAIN2.com
> <VirtualHost mydomain2:80>

The parameter on this pair must match, so either both or
none must have the port specified.
Rather specifiy a wildcard IP adres at both: *

> ServerAdmin webmaster@mydomain2
> DocumentRoot /www/docs/mydomain2.com
> ServerName imydomain2.com

Assuming the i is a typo ...

> 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?
If mydomain2.com can be resolved by DNS a browser will try to connect to
resolved IP and request for that virtual host.

> And should I repeat the above if I wanted to add more domains

All but the first line,just follow the sample(s) at
http://httpd.apache.org/docs/1.3/vh...ased.html#using

HansH


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com