Apache 2 and Mongrel Setup Help
|
Original Message
|
Name: Landon6544
Date: July 26, 2008 at 11:52:18 Pacific
Subject: Apache 2 and Mongrel Setup HelpOS: Linux Ubuntu FiestyCPU/Ram: 256mbModel/Manufacturer: ? |
Comment: I have been scanning the web for days now and can't find anything that seems to work for my setup. We have 2 IPs: x.x.x.113 and x.x.x.114. 113 is set to the domain www.foo.com and 114 is set to www.bar.com on VPSlink. We're wanting to use Apache2 to serve foo.com and Mongrel to serve bar.com. We have apache setup to listen on port 80. I'm guessing we should be using virtual host to solve this problem. I've tried setting it up, but can't get it to work. When we can get the sites to work on different ports, but we need people to be able to go to the default http port(80) to access these two site. Any help would be greatly appreciated. Thanks! Landon Garwood
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: StuartS
Date: July 27, 2008 at 07:27:24 Pacific
|
Reply: (edit)It's not going to work. You can't have two different servers trying to use the same port. In fact Apache gets awkward if any other application tries to use port 80 let alone a another server. Virtual server works well in Apache but it is Apache that does all the work and that relies on all URLs resolving to the same IP address. Stuart
Report Offensive Follow Up For Removal
|
|
Response Number 2
|
Name: Landon6544
Date: July 27, 2008 at 11:48:02 Pacific
|
Reply: (edit)Is it possible to set them up on different ports, and then have virual host or by some other means redirect the person trying to go to www.foo.com automatically to www.foo.com:3000? Landon Garwood
Report Offensive Follow Up For Removal
|
Use following form to reply to current message: