LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 06-09-2005, 11:31 PM   #1
acasaamj
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
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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:

Code:
<VirtualHost *>
        ServerName host2.domain.com
        RewriteEngine     On
        RewriteRule       ^(.*)$        http://192.168.1.10$1  [P]
</VirtualHost>
Where the servername can either be a virtual domain of a main domain your you could specify a totally different domain like www.domain2.com.. 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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:43 AM.

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