Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-19-2004, 12:53 AM   #1
Registered: Dec 2003
Location: Seattle, Washington
Distribution: Debian 'Sarge'
Posts: 85

Rep: Reputation: 15
Forwarding port 80 to two hosts from a Linksys router

I've got a Linksys firewall/router and two Linux hosts, each running Apache. I'd like one of the web servers to host my personal sites, and the second web server to host my clients' sites.

A little more specific... (Linksys gateway w/ external IP) (;;; (;

The specific problem I'm facing is how to forward port 80 to both hosts and have only the specific host respond? Is this even possible with a Linksys router?

The only solution I've found is to host all the domains off a single host and then redirect my clients' sites to This will send the traffic back out on the Internet and from there I can forward port 8081 to my second host.

Any better way of doing this with my existing hardware?
Old 08-19-2004, 12:56 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
You could use apache's proxy feature to keep it all running on the one port but there is no way to use 1 port and 1 ip addresses for 2 servers.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Some difficulty configuring port-forwarding through Linksys router eventide Linux - Networking 9 03-03-2005 01:04 PM
Virtual hosts and port forwarding fr_laz Linux - Networking 0 02-03-2005 02:46 PM
linksys port forwarding problem patrickclay Linux - Networking 5 08-29-2004 02:46 PM
Linksys router- forwarding ports glore Linux - Networking 1 06-01-2004 11:00 PM
Port forwarding in Linksys Box (cable/dsl) pudhiyavan Linux - Networking 1 01-22-2004 09:37 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration