[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Linux-31] Pb de reverse proxy avec Lighttpd...
- To: Linux 31 <linux-31@culte.org>
- Subject: [Linux-31] Pb de reverse proxy avec Lighttpd...
- From: Jean-Marc Mongrelet <jm.mongt@gmail.com>
- Date: Tue, 16 Apr 2019 16:13:08 +0200
- Authentication-results: pic2s.le-pic.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Y+flLJFs"; dkim-atps=neutral
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:content-transfer-encoding:date:from:to:subject :message-id:user-agent; bh=ThpFgqWZAr5awY6y8U/qeNu7mP9OfM2r+4P1dPbnKMo=; b=Y+flLJFs39Qe8PL4GA9gc1JkVVNe6aXLnCdtmugf1w6EN0WGuPGp7jvx1UxR0wzcxV QaKe8vXiZ7WTVc1fYN/HUjRYec//o+lub7TQxDOIuvIWZ6wc1IwohF1hGz9YPR4iqR01 cL9WY9VQ7WgBPcNuDq+arCjIlucXZG30mjqIGAj8eTh8N5KZ5YpLA8tNCzV/KcNEfm7K iFRaqdCKbfneQQPXSRuvGVDockxOn9oCPL9AFPrP3Pcc2XISc0wpuCwTSuDUGF6uvYlz Fs6NNgif1OlVqt3LHPrlNORRoGCQHbCN3xmn3YyVGhfHfXaXg/tRv0bmLpSHtgC16SqY PqVA==
- User-agent: Roundcube Webmail/1.3.6
Bonjour les Libristes,
Y a t-il un expert lighttpd sur la liste ??
Je n'arrive pas à faire fonctionner le reverse proxy avec Lighttpd...
Dans mon fichier de configuration /etc/lighttpd/lighttpd.conf j'ai
déclaré "mod_proxy" dans les server.modules:
######################################################
server.modules = (
"mod_access",
"mod_alias",
"mod_compress",
"mod_redirect",
"mod_proxy",
)
######################################################
J'ai activé le module avec la cmd:
$ sudo lighty-enable-mod proxy
Puis à la fin du fichier de configuration /etc/lighttpd/lighttpd.conf
j'ai fait mes déclarations de reverses proxy:
######################################################
$HTTP["url"] =~ "(^/test/)" {
proxy.server = (
"" => ( "" => (
"host" => "192.168.1.102",
# "port" => 80,
) )
)
proxy.header = ( "upgrade" => "enable" )
}
$HTTP["host"] == "jeankiller123.fr" {
# proxy.balance = "hash"
proxy.server = ( "" => (
( "host" => "192.168.1.102" )
) )
}
######################################################
À savoir que la déclaration $HTTP["url"] =~ "(^/test/)" est juste là
pour faire le test...
La déclaration qui m'intéresse c'est celle du host: $HTTP["host"] ==
"jeankiller123.fr" ...
Mais dans tous les cas cela ne redirige pas!
Une idée ???
JM