Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th May 2009, 18:55
Rashef Rashef is offline
Member
 
Join Date: Nov 2008
Posts: 60
Thanks: 8
Thanked 2 Times in 2 Posts
Default Yet another multiple webserver related question...

Hi,
I found out some thread with similar questions, but no one of them followed up...

This is my config:

ROUTER

pfSense NAT/FW → LAN

DMZ

There are several servers into the DMZ, providing different services... until now!
Since I have NOW two webserver I need to correctly redirect external requests, but I cannot understand how to do this because I need a strange config.

NODE1 (192.168.50.2) is a CentOS 5.3 mailserver, with RoundCube as webmail.
NODE2 (192.168.50.7) is a Mac OS X running Apache, PHP and MySQL, with lots of websites.

This is what I need

NODE1
http://webmail.myfirstdomain.comhttp://192.168.50.2/mail

NODE2
http://www.firsthost.comhttp://192.168.50.7/~firsthost_com
http://www.secondhost.comhttp://192.168.50.7/~secondhost_com
and so on...

I focused on a combine of mod_proxy a VirtualHosts on Node1 but I cannot understand how to do that...
Reply With Quote
Sponsored Links
  #2  
Old 25th March 2010, 09:28
billcouper81 billcouper81 is offline
Member
 
Join Date: Dec 2009
Posts: 30
Thanks: 3
Thanked 5 Times in 4 Posts
 
Default

I don't know how to configure so it will work like that, but I have suggestion

Get two static IP and assign one to each server

You can even do if only one NIC in the machine with virtual NIC assignments:

NODE1 interfaces
Code:
auto eth0
iface eth0 inet static
address 192.168.50.2
gateway 192.168.50.1
netmask 255.255.255.0
network 192.168.50.0
broadcast 192.168.50.255

auto eth0:0
iface eth0:0 inet static
address x.x.x.x
netmask z.z.z.z
NODE2 interfaces
Code:
auto eth0
iface eth0 inet static
address 192.168.50.7
gateway 192.168.50.1
netmask 255.255.255.0
network 192.168.50.0
broadcast 192.168.50.255

auto eth0:0
iface eth0:0 inet static
address y.y.y.y
netmask z.z.z.z
where
x.x.x.x is real-world IP #1
y.y.y.y is real-world IP #2
z.z.z.z is subnet-mask for these ip range


Then you adjust the nameserver records to point to the particular real-world IP of which server is hosting that particular website

eg:
myfirstdomain.com. A = x.x.x.x
www A = x.x.x.x
webmail A = x.x.x.x

firsthost.com. A = y.y.y.y
www A = y.y.y.y

secondhost.com. A = y.y.y.y
www A = y.y.y.y



That is how I have my servers setup currently (except they have quad physical NIC, so no virtual interfaces)
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
User constantly loggin into mail? bswinnerton Installation/Configuration 2 24th March 2008 01:12
control config on safety + multiple domain question falcon5 Server Operation 1 10th October 2007 00:13
FTP Related question badgerbox76 General 5 15th December 2006 19:25
Simple question... I think - re: multiple domains. lidocayne Installation/Configuration 1 17th July 2006 12:53
New install question conserning multiple disks... ctroyp Installation/Configuration 4 21st March 2006 19:51


All times are GMT +2. The time now is 06:56.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.