Skip to content

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

@technout

Description

@technout

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions