i really strugelling getting my Nextcloud and Wordpress Container running behind a reverse NGINX proxy using locations. My reverse proxy working fine when i use location /
but when i use different locations like /nextcloud and /wordpress to redirect traffic on one ip address to the applications it doesnt work .
I tried a lot out of the internet last 2 days but nothing worked out from blank screens over can’t access to page not found in wordpress etc.
Maybe someone have running a wordpress and/or nextcloud container behind a reverse proxy with a different location and can post me how he done the configuration in the applications because i rly think the problem is in the application configuration ?!
Can you share how it is related to Docker? Isn’t it just about Nginx configuration? Either way, there is not much to say without error messages and nginx configs.
GUI web apps usually don’t like to be placed under a path, as they return absolute paths for redirect, scripts and images, which won’t work anymore.
Wordpress will always redirect you to the original URL it was installed to, at least it’s one of the apps you can update the domain / ”base path” to make it run under a different URL. Not sure about nextcloud.
Usually you would use an own sub-domain for every service.
thx for your reply . I’m using docker container for rapid Application supply . My setup is working so far . I can assign Applications to static IP addresses rapidly ( using ansible to do so ) but of course i could do it either with docker-compose.
My reverse proxy is working under / location . But under different locations its not working .
I’m glad I could help. Next time you will know that when something doesn’t work in a container, the problem is often not Docker, but the application configuration in the container
PS:: I removed the quote from your message, since you quoted my entire post and it was also broken.