1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/etherpad_ynh.git synced 2024-09-03 18:36:10 +02:00
etherpad_ynh/conf/nginx.conf

12 lines
435 B
Nginx Configuration File
Raw Normal View History

2014-01-07 22:15:39 +01:00
location PATHTOCHANGE {
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
2014-01-10 15:20:00 +01:00
rewrite /PATHTOCHANGE/(.*) /$1 break;
rewrite ^/PATHTOCHANGE$ /PATHTOCHANGE/ permanent;
2014-01-10 15:19:17 +01:00
proxy_pass http://localhost:9001/;
2014-01-10 15:20:00 +01:00
proxy_redirect / /PATHTOCHANGE/;
2014-01-10 15:19:17 +01:00
proxy_set_header Host $host;
proxy_buffering off;
2014-01-07 22:15:39 +01:00
}