Skip to content

Instantly share code, notes, and snippets.

@theriverman
Created June 17, 2017 12:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theriverman/7991c7f6657a0a5b20da3a6e73da68ca to your computer and use it in GitHub Desktop.
Save theriverman/7991c7f6657a0a5b20da3a6e73da68ca to your computer and use it in GitHub Desktop.
Etherpad behind nginx served at /etherpad
server {
...
...
...
# ETHERPAD|Reverse Proxy [/etherpad]
location /etherpad/ {
rewrite /pad/(.*) /$1 break;
rewrite ^/pad$ /pad/ permanent;
proxy_pass http://localhost:9001/;
proxy_pass_header Server;
proxy_redirect /etherpad/ /etherpad/pad/;
proxy_set_header Host $host;
proxy_buffering off;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment