[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Pseudo vhost sous lighttpd



J'essaie actuellement de configurer des "vhosts" sous lighttpd :

 

J'aimerai que lorsque je tape comme url : http://monitor.appartland.eu/jrds j'accede à JRDS, lorsque je tape http://monitor.appartland.eu/nagios j'accede à nagios.

 

$HTTP["host"]              == "monitor.appartland.eu" {

    proxy.server           = (

      "" => (

        ( "host" => "192.168.0.12",

          "port" => 8080 )

      )

    )

}

Ceci fonctionne très bien, j'accède bien à JRDS. 

 

$HTTP["host"]              == "monitor.appartland.eu" {

    proxy.server           = (

      "" => (

        ( "host" => "192.168.0.12",

          "port" => 80 )

      )

    )

}

Et ceci aussi. j'accède bien à nagios

 

Ma question est donc, comment combiner tout ça ?

 

J'ai tenté des choses du style :

$HTTP["host"]              == "monitor.appartland.eu" {

  $HTTP["url"]             == "/jrds" {

    proxy.server           = (

      "" => (

        ( "host" => "192.168.0.12",

          "port" => 8080 )

      )

    )

  }

 

  $HTTP["url"]             == "/nagios" {

    proxy.server           = (

      "" => (

        ( "host" => "192.168.0.12",

          "port" => 80 )

      )

    )

  }

}

Mais ça ne fonctionne pas.

 

Merci d’avance pour l’aide.


Reply to: