Web :: General :: Need help with IP aliasing and Apache Virtual Hosting |
|||
| By: thepreacher |
Date: 30/06/2009 18:17:19 |
Points: 20 | Status: Answered Quality : Excellent |
|
I really need your help with this. Its been two weeks now and still stuck. All i need to do is this: I have a 2wire router, 5 static IP addresses and 10 domains to host. On the router i have configured the public gateway ip and also assigned a static ip to my ubuntu 8.04 server. The server is also configured with the same static ip. It works because the default apache page displays over the internet. I am also able to now connect via sftp and putty romotely. My problem starts when i add ip aliases to current NIC - eth0. The reason for the ip alising is that on the one NIC we want to host 3 domains which must all have SSL and apart from adding more NICards IP alising is the other alternative which does not cost us money. The issue is that I have tried to configure the sites on apache2 as best as I know and at the moment none of the sites can be view from the net. If i disable everything leaving just the one site, it works. I have attached detailes of my current settings hoping that someone can help. Details of the Interfaces file: root@pmctserver1:/etc/apache2/sites-enabled# nano /etc/network/interfaces Details of the Vhost configuration for a domain all the other domains are copies of this with the right changes made to the servername, documentroot etc..: root@pmctserver1:/etc/apache2/sites-available# nano domain1.org Details of the Interfaces file: root@pmctserver1:/etc/apache2# nano ports.conf root@pmctserver1:/etc/apache2# nano /etc/hosts root@pmctserver1:/etc/apache2# ifconfig Sorry if i've provided too much info i just didn't know what to leave out. |
|||
| By: thepreacher | Date: 30/06/2009 23:50:08 | Type : Comment |
|
| Sorry I made a mistake in the last section of the post. The following is the correct code root@pmctserver1:/etc/apache2# ifconfig |
|||
| By: VGR | Date: 01/07/2009 19:25:43 | Type : Answer |
|
| yo First quick & dirty idea : I wouldn't do this : (for each domain)
but rather :
(for instance) |
|||
| By: VGR | Date: 16/08/2009 15:52:14 | Type : Comment |
|
| titre gras en bleu vers la page le nom saisi et une image : |
|||
| By: OpConsole | Date: 03/04/2011 19:12:29 | Type : Comment |
|
| force close | |||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








