Apache2Triad Help, Support and Development Forum Index Apache2Triad Help, Support and Development
The apache2triad help , support and development forums
 

Run Multiple web servers on one IP
Click here to go to the original topic

 
       Apache2Triad Help, Support and Development Forum Index -> Hosting
View previous topic :: View next topic  
Author Message
kg6uyz



Joined: 27 Jul 2005
Posts: 4

Posted: Mon Jan 09, 2006 8:01 pm    Post subject: Run Multiple web servers on one IP  

Hi all , i am in need of putting two webservers behind one IP. One server is a Mac os8 or so, and hte other is my apache2triad server. i will be putting my webserver at my friends house, where there is one webserver already. Can anybody tell me how to put two servers behind one IP.
Back to top  
dawg



Joined: 11 Apr 2004
Posts: 180

Posted: Mon Jan 09, 2006 8:08 pm    Post subject:  

you will have to use different ports for each server
Back to top  
LDP



Joined: 21 Jan 2006
Posts: 3

Posted: Sat Jan 21, 2006 4:20 am    Post subject:  

Check these link :


http://httpd.apache.org/docs/1.3/vhosts/index.html
or
http://httpd.apache.org/docs/2.0/vhosts/
Back to top  
Joshua Meadows (DemoRic)



Joined: 29 Dec 2004
Posts: 783
Location: S.E. Kansas

Posted: Sat Jan 21, 2006 7:56 pm    Post subject:  

You could use apache as the front end to the other server by treating it as a virtual host. http://apache2triad.net/forums/viewtopic.php?t=4079

Of course the easiest solution would be just to use A2T and move the content to the A2T pc and then host it as avirtual host
Back to top  
Camac



Joined: 30 Jan 2006
Posts: 22
Location: Australia

Posted: Mon Jan 30, 2006 6:15 am    Post subject: Virtual host example  

Camac's tutorials - Tutorial 1
BASIC intro to Virtual Hosts
The main thing to know about virtual hosts' is that this does not mean if you have a virtual host to www.name.com this does not mean that www.name.com will direct to your page you must own the www.name.com domain name! and have your DNS servers running (covered later tutorials)

What is a virtual host? well I do not know the definition but basically it is a function in the apache conf file that tells apache when it gets asked for a specific site apache it knows where to send the request.
Virtual hosts start with the following command;
Namevirtualhost *
This basically tells apache to listen for queries from * (anywhere)
The next comand is the tag;
<Virtual host *:80>
This tells apache to listen to * on port 80
Next we place DocumentRoot;
DocumentRoot C:\www\
This tells apache where to send the query (change C:\www to your document root eg. htdocs)
Next we place SeverName;
ServerName www.yourdomain.com
This tells apache the domain name to listen for
Next is DirectoryIndex
DirectoryIndex index.html
This tells apache what page is the index of the directory you are pointing to
The last thing to put in is the closing tag which says that the virtual host entry is over;
</virtualhost>

That is my BASIC intro to Virtual Hosts tutorial so have fun using virtual hosts *cough* :P :D

Regards
Cameron
www.CamacGames.tk

That should help
Back to top  
flash2k5



Joined: 09 Nov 2005
Posts: 14

Posted: Fri Feb 03, 2006 8:03 pm    Post subject:  

try round robin configuration if u want to use both servers simultaneously to serve the same matter (ie load balancing)

Many freeDNS providers give the round robin facility
Back to top  
Turtle



Joined: 29 Nov 2005
Posts: 8
Location: New Zealand

Posted: Wed Feb 15, 2006 6:58 pm    Post subject:  

AKA

NO-IP * best i recon :p *
Back to top  
 
       Apache2Triad Help, Support and Development Forum Index -> Hosting
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.13 © 2001, 2002 phpBB Group