LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Multiple web servers on DMZ...is that possible? (https://www.linuxquestions.org/questions/linux-software-2/multiple-web-servers-on-dmz-is-that-possible-466071/)

depam 07-20-2006 09:23 PM

Multiple web servers on DMZ...is that possible?
 
Ey, I have successfully setup IPCop as firewall and router. I have DMZ which is called the Orange zone. Now, here's my question. Is there a way to have multiple webservers on a DMZ zone? I have mail server which also has apache installed to access the mails using IMAP protocol. I also want to have another web server on the DMZ zone. But I can only point port 80 once on the IPCop firewall. What do I need to do?

phil.d.g 07-22-2006 10:06 AM

You can make use of name-based virtual hosts in apache: http://httpd.apache.org/docs/2.2/vhosts/name-based.html

depam 07-24-2006 09:29 AM

I can't understand. How am I going to use that if I only have one port to forward on my router. I have forwarded port 80 to my mail server box having Apache installed for the webmail functionality. How do I point certain website on my web server. Please note that my mail server and web server are two different physical machines which also has port 80 opened and both on the DMZ zone.

billymayday 07-24-2006 02:48 PM

Probably not a very elegant solution, and not ideal for load sharing, but couldn't you:

1. Forward all port 80 requests to DMZ machine1
2. On DMZ machine1, use iptables (or similar) to forward all port 80 requests for DMZ machine2 to DMZ machine2.

Just a quick thought.


All times are GMT -5. The time now is 02:11 PM.