Multiple Domains on Apache [Archive] - SpeedGuide.net Broadband Community

View Full Version : Multiple Domains on Apache


nagetech
07-12-02, 05:32 PM
I have tried to succeed at this for a very long time....and have failed miserably! So I'm hoping you guys can help me out

I'm very very very new to Linux...so go easy on me..and please if yo ucan break things down for me

This is my setup.. I have apache listening to port 85, and it picks up on any address that requests that port

for example:

nat.mine.nu:85
nat.sytes.net:85

They lead to my document root which is /www

First I'd like to make it so that the server will only serve nat.mine.nu:85 the document root..... if someone types in nat.sytes.net:85.....they dont go any where...

Second thing is, I want www6.ps2gaming.net:85 to poing to another folder ...which is /ps2

But no matter what i do to set it up..it points to /www.... and thats not what i want!

I'm behind a Router, singlie IP, DYnamic

What Changes do i have to make to the httpd.conf file so that they are treated as separate domains

if anyone can get this issuse solved for me...I'lll glady give you free web hosting.... I've had long time expericne in web hosting with win2k / IIS...and it has been very successfuly so far.. but linux...very new to me...so im taking my time to learn...

THanks in advance

cyberskye
07-12-02, 05:47 PM
http://httpd.apache.org/docs-2.0/vhosts/

There's the one if you are running apache 1.3 http://httpd.apache.org/docs/vhosts/index.html

The bottom link on each page speaks to the directives you need to set up virtual hosting.

RTFM!:D

Skye

cyberskye
07-12-02, 05:50 PM
Oh yeah - Welcome to the Real World :cool: