Re: Two Apache instances; IPTables to redirect ports

From: Kjetil Kjernsmo (kjetil_at_kjernsmo.net)
Date: 02/09/04

  • Next message: Justin Guerin: "Re: Software RAID problems (bad filesystem type)"
    To: debian-user@lists.debian.org
    Date: Mon, 9 Feb 2004 19:41:01 +0100
    
    

    On Monday 09 February 2004 18:04, Adam Aube wrote:
    > 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.

    Oh, OK... Isn't it a viable alternative to run apache with -f config,
    with another config file...? I thought that would be the most elegant
    path to take, but I have no clue on how to implement it practically, so
    perhaps you're right.

    > > 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.

    OK.

    >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.

    OK, I have some hints for using yet another Apache instance to do that,
    I'll probably look into that.

    Thanks!

    Best,

    Kjetil

    -- 
    Kjetil Kjernsmo
    Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer
    kjetil@kjernsmo.net  webmaster@skepsis.no  editor@learn-orienteering.org
    Homepage: http://www.kjetil.kjernsmo.net/        OpenPGP KeyID: 6A6A0BBC
    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Justin Guerin: "Re: Software RAID problems (bad filesystem type)"

    Relevant Pages

    • Re: My Apache test page wont die!
      ... > But, when I go into htdocs, there's no index.html. ... So I go back to the download, config, ... I get a message that Apache is preserving my ... > back to the download, config, make, make install. ...
      (comp.infosystems.www.servers.unix)
    • Re: opening a client application from a server?
      ... I think it is an Apache problem, but we don't have enough information to ... Acrobat, open a txt file in the browser window, and so on. ... appropriate content-type. ... If it's Apache, fix the Apache config. ...
      (comp.lang.perl.misc)
    • Why is mod_limitipconn-0.23 in Ubuntu 8.04 not working?
      ... The steps I took to install and use limitipconn. ... I build the source code as an Apache DSO: ... Everything is OK till make done, there are no error messages. ... had modified the default config file. ...
      (Ubuntu)
    • Re: Teaching standard init config...
      ... >> matter of a layer of config tools on top of the standard files, ... If I can't teach how to make Apache start at boot, ... >> installing Apache at all. ... > them to figure out how it is done on their particular distro, ...
      (comp.os.linux.setup)
    • Apache Tomcat Slackware
      ... Slackware 10.0 with the default java install. ... as the connection between Tomcat and Apache is easiest ... All I want is the connector between Apache ... Make sure the workers2.properties is in your apache config directory. ...
      (comp.lang.java.help)