remove extra locations

This commit is contained in:
2021-05-23 13:50:57 +00:00
parent 87dd5a9d0b
commit 802578bd82

View File

@@ -4,10 +4,8 @@ server {
server_name localhost;
resolver 127.0.0.11 valid=30s;
set $theia theia;
set $etherpad etherpad;
set $dokuwiki dokuwiki;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
# set $etherpad etherpad;
client_max_body_size 10M;
location / {
# root /usr/share/nginx/html;
@@ -21,25 +19,18 @@ server {
proxy_set_header Connection "upgrade";
}
location /dokuwiki {
rewrite /dokuwiki/(.*) /$1 break;
rewrite ^/dokuwiki$ /dokuwiki/ permanent;
proxy_pass http://$dokuwiki:8080;
proxy_redirect / /dokuwiki/;
proxy_set_header Host $host;
proxy_buffering off;
}
location /etherpad {
rewrite /etherpad/(.*) /$1 break;
rewrite ^/etherpad$ /etherpad/ permanent;
proxy_pass http://$etherpad:9001;
proxy_redirect / /etherpad/;
proxy_set_header Host $host;
proxy_buffering off;
sub_filter /static/plugins/ /etherpad/static/plugins/;
sub_filter /etherpad/etherpad/static/plugins/ /etherpad/static/plugins/;
sub_filter_once off;
}
# location /etherpad {
# rewrite /etherpad/(.*) /$1 break;
# rewrite ^/etherpad$ /etherpad/ permanent;
# proxy_pass http://$etherpad:9001;
# proxy_redirect / /etherpad/;
# proxy_set_header Host $host;
# proxy_buffering off;
# sub_filter /static/plugins/ /etherpad/static/plugins/;
# sub_filter /etherpad/etherpad/static/plugins/ /etherpad/static/plugins/;
# sub_filter_once off;
# }
location /dev {
rewrite_log on;
rewrite /dev/(.*) /$1 break;