Hello fellow Dietpiers.
I could use some help with reverse proxy to Docker containers, been driving me nuts for weeks. I picked up a new Nuc to step up from a Raspberry Pi 4. Fresh install with lighttpd,
nextcloud, owncloud, certbot, Docker, Docker-Compose and Portainer. Lighttpd is serving my website, NC and OC perfectly thru https, Android apps and PC programs. In docker I only want to run Bookstack, Vaultwarden and StandardNotes.
I started off with Bootstack, edited, enabled and reloaded lighttpd with this code
$HTTP["url"] =~ "^/bookstack($|/)" {
proxy.header = (
"map-urlpath" => (
"/bookstack" => ""
)
)
proxy.server = ( "" =>
(( "host" => "192.168.0.10", "port" => 8080 ))
)
}
Ignore the port I adjusted in docker-compose, this got me nowhere. So I switched to the solidnerd version and got the login page. However after logging in I get ‘page not found’.
Looking at the browser address bar I noticed ‘https://example.com/bookstack/bookstack’
a double address of bookstack.
The linuxserver.io container uses apache2 and the solidnerd uses nginx and both produce different results.
I am at a loss with what to do. Do I clean install ( no problem it takes less then 3 minutes with my Redo Rescue backup base) and try with nginx? I would hate to loose my excellent connectivity I get with lighttpd, or is it possible to sort this out? I should point out I like the sub-path vs sub-domain concept Dietpi uses and would rather stick with that instead of creating a bunch of subdomains.
Any help would be very much appreciated, sorry for such a long post.