Hi Valentin, I am not sure that what you provided is exactly what I am trying to achieve. What I want is if someone hits port 80 (HTTP) with /account that they redirect to /account on port 443 (HTTPS). However, if they come in on port 443 (HTTPS) with /account that they remain on port 443 (HTTPS). Similar rules exist for keeping certain URI's on HTTP or allowing certain URIs to use HTTP/HTby nikolaos2012 - Nginx Mailing List - English
Hi Valentin, I have read that I should be using the location directive unless I have numerous mappings in other places. In this case we have about a dozen mappings. But I am curious if I used the location directive what would the above mapping example translate to so that it results in a $use_secure variable that we can include in another file so that it can be used inside multiple serverby nikolaos2012 - Nginx Mailing List - English
Turns out that this was a mis-configuration on our end and that it works great in 1.6.0+ We had the issue on a test server that had 2 sites sharing the same IP address but moreover both sites assigned the $use_secure variable so it was being overwritten by the 2nd site and always set to 0 b/c of no match of a URI with the 1st site against the 2nd site. Resolution was simple... I just suffixedby nikolaos2012 - Nginx Mailing List - English
We have the following code that worked in 1.3.16.... # Map VWS URI's to HTTP ($use_secure=0), HTTPS ($use_secure=1) or keep same ($use_secure=2) map $uri $use_secure { default 0; ~^/sites/ 2; ~^/account/ 1; } And this file for the main config that includes the map file: include /srv/etc/web_x/nginx/include/example.org_prepend.conf; server { listen 192.168.0.101:80; server_naby nikolaos2012 - Nginx Mailing List - English
I just realized I posted this in the wrong forum... re-posting in the Nginx Mailing List - English....by nikolaos2012 - How to...
We have the following code that worked in 1.3.16.... # Map VWS URI's to HTTP ($use_secure=0), HTTPS ($use_secure=1) or keep same ($use_secure=2) map $uri $use_secure { default 0; ~^/sites/ 2; ~^/account/ 1; } And this file for the main config that includes the map file: include /srv/etc/web_x/nginx/include/example.org_prepend.conf; server { lisby nikolaos2012 - How to...
This used to work in 1.3.13+ but for some reason no longer works on 1.6.0 or 1.6.1. Can someone please explain what has changed concerning the map directive that makes it no longer work as it did in the past?by nikolaos2012 - How to...