Bluehost.com Web Hosting $6.95

apache 1.3 on windows xp question

This is a discussion on apache 1.3 on windows xp question within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello, I've installed apache for windows, perl, and mysql on my spare xp box (2.8ghz 2gb ram, two ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-30-2005
GamePlayer No. 1058
 
Posts: n/a
Default apache 1.3 on windows xp question

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.



  #2 (permalink)  
Old 09-30-2005
HansH
 
Posts: n/a
Default Re: apache 1.3 on windows xp question

"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/vho...sed.html#using

HansH


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:20 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0