Skip to content

Instantly share code, notes, and snippets.

@scsskid
Last active September 15, 2021 16:19
Show Gist options
  • Save scsskid/f1e8fd435067358a6314c10a91399c07 to your computer and use it in GitHub Desktop.
Save scsskid/f1e8fd435067358a6314c10a91399c07 to your computer and use it in GitHub Desktop.
Nginx Reverse Proxy Config Docker Wordpress #ubuntu #docker #nginx

Nginx Reverse Proxy

Sample Config from wordpress project

server {
  listen        80;
  server_name   v2.benedikt.gr;

  location / {
    proxy_pass http://127.0.0.1:8002;
    proxy_buffering on;
    proxy_buffers 12 12k;
    proxy_redirect off;

    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $remote_addr;
    proxy_set_header Host $host;
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment