LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-23-2010, 02:03 PM   #1
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
Apache: redirect different domains to different internal servers


Hi all,

I have several web servers running apache on my LAN. Each internal server hosts a number of domains.

I would like to make these available to the internet and make sure they all get to use port 80 and 443.

My idea was to put Apache on the firewall and have all http(s) traffic from the Internet to my firewall be redirected by Apache to the different internal apache servers. This, in theory, would allow me to keep the standard http(s) port.

Can this be done? I was thinking of mod_rewrite and mod_redirect but in all honesty, I'm a little at a loss on where to start.

Can someone point me to relevant documentation or give me the basic idea on how to start?

example:

Code:
domain1.com -+          +--|Apache server hosting domain1 and domain2|
domain2.com -+--| fw |--+
domain3.com -+          +--|Apache server hosting domain3|
Thanks for any help!
 
Old 04-23-2010, 02:56 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

You can use mod_proxy and setup the apache facing internet as a reverse proxy for the internal servers.
You can find a lot of documentation about configuring apache as a reverse proxy.

Regards
 
1 members found this post helpful.
Old 04-23-2010, 03:03 PM   #3
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Original Poster
Rep: Reputation: 48
Thanks bathory, just what I was looking for it seems!
 
  


Reply

Tags
apache, modproxy



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
National domains redirect axelgenus Linux - Server 1 04-13-2009 06:55 PM
Redirect all traffic to IP nn to internal IP xx Red Squirrel Linux - Networking 1 03-17-2009 05:20 PM
Sub Domains & Multiple Domains (Apache) lugos Linux - Server 1 09-01-2006 10:22 PM
Apache2 internal redirect? WopMaster8 Linux - Software 2 03-28-2005 01:25 AM
Redirect traffic to internal IP? xmutex Linux - Networking 1 08-13-2001 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:29 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