http://calcg.org/newlogo2.png Not Logged in.
Login | Register

General Discussion Board \ Computer Programming \ Multiple web servers with one public IP

Click here to log in (you must be logged in to post comments).

AuthorComment
Zachary940
Wraith
avatar
Posted: 25 Apr 2008
12:23 GMT
Total Posts: 714
I know this isn't programming but hey it's still related to computers.
I would like to host multiple websites from a single public IP address. My problem is that the only way that i can think of doing this is by using different ports. Well that just looks tacky in an adress bar when you have www.lala.org:81.

I'm assuming that I am going to have to do some kind of name forwarding thing. Does anyone know how to host two websites from a single public ip address?

[edit]
I am using two different local ip address.

---
It is much easier to suggest solutions when you know nothing about the problem.
Barrett
Administrator
avatar
Posted: 25 Apr 2008
18:10 GMT
Total Posts: 1676
If you are using apache, you will create VirtualHost entries for each site. If you are using anything else, it'll probably be somewhat similar... so do a search for VirtualHost (goes in the httpd.conf file).

---
-Barrett A
Zachary940
Wraith
avatar
Posted: 25 Apr 2008
19:25 GMT
Total Posts: 714
Yes i am using apache and I have already set up Virtual Hosts. I can easily type in the local address (ex: 192.168.2.234) into FF and both sites work just as they should. The problem is that I only have one public IP address that I receive from my ISP. I could set up virtual servers on my router and each site uses a different port, but when you think about it http://bla.com:81 isn't the most popular choice.



---
It is much easier to suggest solutions when you know nothing about the problem.
Barrett
Administrator
avatar
Posted: 25 Apr 2008
19:26 GMT
Total Posts: 1676
You only need 1 IP address and you don't need different ports like that. Read more into VirtualHost.

---
-Barrett A
Zachary940
Wraith
avatar
Posted: 25 Apr 2008
20:07 GMT
Total Posts: 714
ok, I understand it now. I use a name base rather then an IP based virtual Host. It all makes since now.

Thanks B

---
It is much easier to suggest solutions when you know nothing about the problem.





Portal | My Account | Register | Lost Password or Username | TOS | Disclaimer | Help | Site Search | File Archives Copyright © 2002-2019 CalcG.org