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!

DMZ & web server question

Status
Not open for further replies.

ScreeminChikin

IS-IT--Management
Dec 16, 2002
31
US
I am wanting to start hosting my web sites locally. For background, I have roadrunner with a static ip and a sicco router leased from the cable company. Behind that I have a 3com firewall/vpn appliance that has a built in DMZ port. I want to set up a apache web server on a Linux box on the DMZ port of the firewall. I want to host 3 web sites on this one server. So I assume that I give this server a private IP, lets say 192.168.9.9 and lets say that my public ip is 1.2.3.4 . Now do I just set the DMZ to send http traffic to 192.168.9.9 and when someone types 1.2.3.4 into a browser they will see my web server right? Now how do know which website will be hit? would all three sites just be in a different folder in the main directory so that I could access them like http:\\1.2.3.4\site1 etc? Right now My sites are hosted on by outside providors so when I get this working I will just tell my domain name provider to point my domain names to each site like points to 1.2.3.4\site2. Am I even close here? This is my first attempt at a web server so any help is appreciated, I am making alot of assumptions so please straighten me out.
 
Presuming that you are running Apache on your web server, you set up virtual servers in your httpd.conf config file. So you might have directories for /var/ /var/ etc... Each directory will have an index page for that site, ie index.html.

So, if someone wants then the browser makes a get request for and your apache config points to /var/ and serves the index.html page from within that directory.

Take a look at for more information.

Chris.
**********************
Chris Andrew, CCNA, CCSA
chris@iproute.co.uk
**********************
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top