Skip to content
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

You're making a very good yt tutorial about this topic! #14

Open
technout opened this issue Dec 29, 2022 · 0 comments
Open

You're making a very good yt tutorial about this topic! #14

technout opened this issue Dec 29, 2022 · 0 comments

Comments

@technout
Copy link

technout commented Dec 29, 2022

But I've a question about the combination of wordpress container and nginx:
Can you explain how to config nginx (and maybe wordpress container itself) so that wordpress can be reached as in a sub directory?

I tried it with this config (and some others) but i cannot figure it out..

server {
  listen 443 ssl http2;
  server_name localhost mydomain.com;
 
  location /wpsubdir {
    rewrite ^/wp-admin/(.*)$ /$1 break;
    proxy_pass http://localhost:8081/;
    proxy_redirect http://localhost:8081/ /wpsubdir/;
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant