LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-19-2004, 01:53 AM   #1
ridertech
Member
 
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...
192.168.1.1 (Linksys gateway w/ external IP)
192.168.1.2 (mysite1.com; mysite2.com; mysite3.com; mysite4.com)
192.168.1.3 (client1.com; client2.com)

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 client1.com:8081. 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, 01:56 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
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.
 
  


Reply


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 02:04 PM
Virtual hosts and port forwarding fr_laz Linux - Networking 0 02-03-2005 03:46 PM
linksys port forwarding problem patrickclay Linux - Networking 5 08-29-2004 03:46 PM
Linksys router- forwarding ports glore Linux - Networking 1 06-02-2004 12:00 AM
Port forwarding in Linksys Box (cable/dsl) pudhiyavan Linux - Networking 1 01-22-2004 10:37 AM


All times are GMT -5. The time now is 07:49 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration