Minimal lighttpd configuration example which proxies all HTTP traffic on localhost:80 to localhost:3333. To run in a Docker container execute:
sudo docker run --rm -t -v "$(pwd)/lighttpd.conf:/etc/lighttpd/lighttpd.conf" -p 80:80 sebp/lighttpd| server.modules = ( | |
| "mod_proxy" | |
| ) | |
| server.username = "lighttpd" | |
| server.groupname = "lighttpd" | |
| server.pid-file = "/run/lighttpd.pid" | |
| server.document-root = "/var/www" | |
| server.errorlog = "/dev/pts/0" | |
| $HTTP["host"] =~ "localhost" { | |
| $HTTP["url"] =~ "^/.*" { | |
| proxy.server = ( "" => | |
| (( | |
| "host" => "host.docker.internal", | |
| "port" => 3333 | |
| )) | |
| ) | |
| } | |
| } |