New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proxy wont forward domain.com/<subdir> #87
Comments
What is 192.168.178.37? |
Are you using docker swarm or docker compose to deploy a yaml file? |
the IP I used a docker-conpose file to deploy the proxy and the WordPress containers |
I edited my initial post to stop confusion about the IP, also I have forgotten to include the This is what it actually looks like, sorry my bad.
|
Heya can you help me with it? I tried nearly anything and it won't work. Do you need more information about my problem? |
Well, I'm not sure if wordpress supports running entirely under a path (wp1). I was able to get it partially working using settings WP_HOME and WP_SITEURL. But still wp-admin doesn't work very well, several times it redirects to a url without wp1. See below a test I did for docker-compose, without swarm services:
Then hit http://localhost:8080/wp1 |
The issue is wp-canonical-admin url that is generated based on SERVER['REQUEST_URI'], which doesn't contain path wp1. |
Hmm okay, but I think that this issue only applies to WordPress right? What about my own sites that I write or different CMS, does this problem effect it too? But thanks for your time to try to figure it out. |
Well, it might affect several kind of applications/sites. If you proxy a subdomain instead of a folder, like: wp1.your-domain.com, you would face much less issues. |
sorry for that really late answer, I know but for the intended purpose was this the only way. But my friend changed his mind and did the subdomain way. But thanks again for that help, I learned a bit from that :D |
Hello there, first of all, great proxy but I can't get it to work for me. I'm not the best in docker and I'm still learning so please forgive me when I ask stupid questions.
So this is my scenario, I want to proxy
domain.com/wp1
to a WordPress container. The Wordpress container has two networks attached. one for the backend and one for the frontend. The backend one is used for communication between WordPress and mySQL Server. The frontend one is used to proxy the requestdomain.com/wp1
to the container.I do this because I don't want that other containers can access my WordPress database.
And this approach worked somewhat. the proxy detects the container and generates a proxy directive
But it, in the end, it won't work, I cannot access it.
The labels I uses are
am i doing something wrong here?
The text was updated successfully, but these errors were encountered: