docker-compose-wordpress icon indicating copy to clipboard operation
docker-compose-wordpress copied to clipboard

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

Open technout opened this issue 3 years ago • 0 comments

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/;
  }
}

technout avatar Dec 29 '22 21:12 technout