Re: Two Apache instances; IPTables to redirect ports
From: Adam Aube (aaube01_at_baker.edu)
Date: 02/09/04
- Previous message: Derrick 'dman' Hudson: "Re: sftp sources?"
- In reply to: Kjetil Kjernsmo: "Two Apache instances; IPTables to redirect ports"
- Next in thread: Kjetil Kjernsmo: "Re: Two Apache instances; IPTables to redirect ports"
- Reply: Kjetil Kjernsmo: "Re: Two Apache instances; IPTables to redirect ports"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: debian-user@lists.debian.org Date: Mon, 9 Feb 2004 12:04:13 -0500
On Monday 09 February 2004 07:43 am, Kjetil Kjernsmo wrote:
> So, how do I set up my box to run two different Apache instances...?
Install your demo system from Apache source in /usr/local/apache, and make
sure it uses a different port, log & pid files, etc.
> The other question is related: I have to run the demo server at a
> different port, say 8081. But, I figured it should be easy with
> IPTables to redirect this so that incoming traffic to my demo server
> test.skepsis.no at port 80 is redirected to 8081, without interfering
> with the other traffic to the other virtual hosts on this machine.
Impossible. IPTables works at too low of a level to see the hostname in
the request sent to the server. What you need is a reverse proxy. I know
Squid can be used for this, but I've never done it, so I can't give you
any advice on how to go about it.
Adam
-- To UNSUBSCRIBE, email to debian-user-request@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- Previous message: Derrick 'dman' Hudson: "Re: sftp sources?"
- In reply to: Kjetil Kjernsmo: "Two Apache instances; IPTables to redirect ports"
- Next in thread: Kjetil Kjernsmo: "Re: Two Apache instances; IPTables to redirect ports"
- Reply: Kjetil Kjernsmo: "Re: Two Apache instances; IPTables to redirect ports"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|