[Solved] proxy forward multiple domains
Added by mika0102 4 months ago
Hi,
I am pretty new to lighttpd, i am using it as a proxy to forward all requests to tomcat, which also contain all the domains / vhosts routing to the domain i was wondering if there is a easy way to allow ALL domain to pass true true tomcat without
putting each domain to
$HTTP["host"] == "xxx.XXxx.xxx" { proxy.balance = "hash" proxy.server = ( "" => ( "tomcat" => ( "host" => "127.0.0.1", "port" => "8080" ) ) ) }
by 50+ domains the config file its getting insane long.
Thanks.
Cheers,
- Mika
Replies (2)
RE: proxy forward multibe domains - Added by avij 4 months ago
If you really want to proxy all domains, consider removing the outer $HTTP["host"] == "xxx.XXxx.xxx" { } altogether. If you want to proxy all but one domain, try $HTTP["host"] != "not.proxied.domain" { }.