Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can apache run virtual hosts from behind a firewall with DMZ? 1

Status
Not open for further replies.

jacksondorado

IS-IT--Management
Apr 12, 2001
135
US
I have a Linksys router that uses DHCP to run multiple computers via one static IP address. I set DMZ to open up my Apache web server to the web but the computer now has a 192.168.1.xxx IP address that's different from the router's IP.

Can the conf file be tweeked to recognize virtual hosts? The best I can do now is get one domain root to show up in the browser.

thanks in advance.
 
I also use the linksys routers!
The best thing to do here is this:
1) place the DMZ to 192.168.1.0
2) set port forwarding to the machine IP that the server uses on the internal side. enable ports 21-110 and maybe 443 if you use SSL.
3) set all VirtualHost containers to the internal IP of the server and the NameVirtualHost directive.

EXAMPLE
NameVirtualHost 192.168.1.102
<VirtualHost 192.168.1.102>
ServerName DocumentRoot /home/httpd/domain
</VirtualHost>

This will allow the server to be used behind the firewall!
DO NOT UPGRADE THE ROUTER FIRMWARE TO VERSION 1.385 (The Latest), you will regret it if you wish to use the firewall for the server!!!!!!


Hope this helps!!!


Rninja
 
Darn it. I already upgraded to firmware version 1.38.5

I think I will pull my server out from behind the firewall and run firewall software on it. I feel hope is lost for now on this one :(
 
NO, just get the old firmware, version 1.3.7. I can give it to you if you want. Jusdt remember to save all the settings before wiping it over with new firmware.




Hope this helps!!

Rninja
 
I would greatly appreciate getting the old firmware. Is it small enough to email? My email is jacksondorado@hotmail.com

Cheers-
 
It is weird. I tried your DMZ and port forwarding tips and the site works ok. :) thanks.

But it seems that only the first Virtual Host directory appears no matter if I put the true IP or subsequent Virtual Host names in the address bar. Any thoughts?

 
make sure you use the same internal IP and don't forget to set the NameVirtualHost directive to your internal IP. If you still have problems, check out the mini-faq in this forum.


Hope this helps!!!


Rninja
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top