diff --git a/roles/calibre-web/templates/calibre-web-nginx.conf.j2 b/roles/calibre-web/templates/calibre-web-nginx.conf.j2 index 7437daaf6..55839acac 100644 --- a/roles/calibre-web/templates/calibre-web-nginx.conf.j2 +++ b/roles/calibre-web/templates/calibre-web-nginx.conf.j2 @@ -1,8 +1,7 @@ -location /books { - proxy_bind $server_addr; - proxy_set_header Host $http_host; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Scheme $scheme; - proxy_set_header X-Script-Name /books; - proxy_pass http://127.0.0.1:8083; +location /books/ { + proxy_set_header Host $http_host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Scheme $scheme; + proxy_set_header X-Script-Name /books; + proxy_pass http://127.0.0.1:8083; } diff --git a/roles/kolibri/templates/kolibri-nginx.conf.j2 b/roles/kolibri/templates/kolibri-nginx.conf.j2 index 54af28c09..163d0ee95 100644 --- a/roles/kolibri/templates/kolibri-nginx.conf.j2 +++ b/roles/kolibri/templates/kolibri-nginx.conf.j2 @@ -1,9 +1,8 @@ -location /kolibri { - proxy_bind $server_addr; - proxy_set_header Host $http_host; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Scheme $scheme; - proxy_set_header X-Script-Name /kolibri; - proxy_pass http://127.0.0.1:8009; +location /kolibri/ { + proxy_set_header Host $http_host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Scheme $scheme; + proxy_set_header X-Script-Name /kolibri; + proxy_pass http://127.0.0.1:8009; } diff --git a/roles/sugarizer/templates/sugarizer-nginx.conf b/roles/sugarizer/templates/sugarizer-nginx.conf index cd7235335..0085217dd 100644 --- a/roles/sugarizer/templates/sugarizer-nginx.conf +++ b/roles/sugarizer/templates/sugarizer-nginx.conf @@ -1,9 +1,6 @@ # sugarizer_port is set to 8089 in /opt/iiab/iiab/vars/default_vars.yml # If you need to change this, edit /etc/iiab/local_vars.yml prior to installing - - location /sugarizer { - proxy_bind $server_addr; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Scheme $scheme;