Reverse Proxy using lighttpd impossible with external.conf

I added "mod_proxy" to the "server.modules" option in /etc/lighttpd/lighttpd.conf and the following snippet in
/etc/lighttpd/external.conf:

$HTTP["host"] == "pi" {
# Undo Pi-hole Javascript Redirect
url.rewrite = ("^(?!.)..js$" => ".*.js")

proxy.server = ( "/" =>
                   ( (
                       "host" => "192.168.1.32",
                       "port" => 8080
                     ) )
                 )

}

I have not found a way to place the "mod_proxy" option into the persistent /etc/lighttpd/external.conf file. Lighttpd doesn't allow a second "server.modules" option.

I think this problem is different to the Reverse proxy feature request.

Can it work via:

server.modules += ( "mod_proxy" )

I couldn't believe it's so easy but it finally works.
So glad you helped me out.
Thank you a lot!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.