Skip to content

Instantly share code, notes, and snippets.

@standinga
Created June 18, 2019 15:08
Show Gist options
  • Save standinga/72e5435e9e76889c5941f3cb2464d5b5 to your computer and use it in GitHub Desktop.
Save standinga/72e5435e9e76889c5941f3cb2464d5b5 to your computer and use it in GitHub Desktop.
Nginx server block for medium post about moving wordpress into docker containers
server {
server_name nasulawesi.me www.nasulawesi.me;
location /pma/ {
proxy_pass http://localhost:8080/;
}
location / {
proxy_pass http://localhost:8000;
proxy_set_header Host $host; #necessary for wordpress
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment