LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-13-2005, 05:57 PM   #1
scrawl
LQ Newbie
 
Registered: May 2003
Posts: 8

Rep: Reputation: 0
2 servers listening on port 80 possible?


I have two Mandrake boxes, one running Apache listening on port 80, the other running Flash Communication Server, listening on port 3159. I also have a single static IP.

What I want to do is to have both servers listening on port 80, and based on the 'hostname' in the incoming HTTP headers, redirect the packets to the correct server. Pretty much exactly the same as Apache's name based virtual hosts function, except with two separate servers.

Eg, assuming my DNS entries are:

www.foo.com A 999.888.777.666
fcs.foo.com A 999.888.777.666

If the domain is 'www.foo.com', direct packets to the Apache server, if the domain is fcs.foo.com, direct packets to the Flash comm server.

I am fairly new to this (but learning fast) and am not too sure if this is even possible. Any help appreciated.

-Scrawl

Last edited by scrawl; 03-13-2005 at 05:58 PM.
 
Old 03-13-2005, 06:06 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
i'm quietly confident that that isn't possible, the "high" level site names aren't available to the "low" level ip routing.

what i'd recommend is that use just use apache's mod_proxy and a virtualhost entry for the subdomain to relay all the fsc.blah.chips.com references to the other server. perfectly within the capabilites of apache, (maybe) assuming that fcs is only dishing out webpages (or a sort) any way.
 
  


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
listening to a usb port fred22 Programming 0 01-11-2005 08:53 PM
ssh listening on port 22 sharpie Linux - Security 9 06-08-2004 04:28 PM
multiple servers listening on port 80 ruprecht Linux - Networking 2 03-05-2004 08:15 AM
Apache listening on port.. well it isn't Newman_SCO Linux - Newbie 10 08-15-2003 01:32 PM
sendmail listening on port 25 dskny Linux - Software 14 08-12-2003 07:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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