Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 06-09-2005, 11:31 PM   #1
LQ Newbie
Registered: Jun 2005
Posts: 1

Rep: Reputation: 0
Multiple servers

I have two servers, at home, both running apache, my router only lets one server be placed outside the firewall, that is access by port 80. Now say I want to run a mail server from the second server, is there a way to let the request come through the server that is outside the firewall, and then get to the server that is inside the firewall. Basically I'm wondering how I can get access to both of my servers from outside of the firewall, perhaps routing from the server outside of the firewall to the one inside of it?
Old 06-10-2005, 12:09 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 267Reputation: 267Reputation: 267
In order to be able to have two servers running on port 80 behind a firewall with only one IP address for your connection, you'd have to setup a virtual host on the main web server to point to the other server running apache, example like this:

<VirtualHost *>
        RewriteEngine     On
        RewriteRule       ^(.*)$$1  [P]
Where the servername can either be a virtual domain of a main domain your you could specify a totally different domain like but basically whatever is configured on your other internal server.

If you don't have a domain name, no, you can't access two different servers with one IP using the same port, you'd have to switch your router to point to one or the other when you wanted to connect to it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple mail servers karentaylor Linux - Newbie 2 08-08-2004 08:59 PM
multiple servers on port 80 steve_babbage Linux - Networking 4 02-19-2004 07:03 AM
Multiple X servers Stephanie Linux - General 2 02-27-2003 02:32 PM
multiple x servers?? icyfire Linux - Software 2 11-12-2002 01:42 AM
multiple X servers acid_kewpie Linux - General 1 11-11-2001 03:06 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration