41 lines
991 B
Plaintext
41 lines
991 B
Plaintext
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name localhost;
|
|
|
|
#charset koi8-r;
|
|
#access_log /var/log/nginx/host.access.log main;
|
|
|
|
location / {
|
|
# root /usr/share/nginx/html;
|
|
# index index.html index.htm;
|
|
proxy_ssl_server_name on;
|
|
proxy_ssl_verify off;
|
|
|
|
proxy_pass http://fetsitedev:5001;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
}
|
|
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;
|
|
}
|
|
|
|
#error_page 404 /404.html;
|
|
|
|
# redirect server error pages to the static page /50x.html
|
|
#
|
|
error_page 500 502 503 504 /50x.html;
|
|
location = /50x.html {
|
|
root /usr/share/nginx/html;
|
|
}
|
|
|
|
}
|
|
|