Created
June 17, 2017 12:57
-
-
Save theriverman/7991c7f6657a0a5b20da3a6e73da68ca to your computer and use it in GitHub Desktop.
Etherpad behind nginx served at /etherpad
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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