Hi. Our login page accepts a query parameter called client_id. Suppose we have three applications and their respective client_ids are: client_id=external-app client_id=internal-app1 client_id=internal-app2 You may guess... behind the scene we do an oauth login that's why "client_id" is in the url. We do have separate nginx servers for handling external users so they won't aby jwxie - Nginx Mailing List - English
Hi, I asked somewhat releated question here: http://serverfault.com/questions/484573/nginx-proxy-to-a-new-vm-without-affect-old-site-enabled-rules Problem arises with one java program. This java program now expects /beta/scm because it said "/scm not found" in its pretty java error page. Not nginx 404. So this is what I have server { rewrite ^/beta(.*)$ $1 last; # strip out the bby jwxie - Nginx Mailing List - English
I figured I was very wrong from the beginning. If a user hits http it would be a GET by nature and hence forced to redirect to a viewable page that runs on HTTPS. You are right. My script would work in the test machine only because I did something special. Ah. Thanks Forget about this :Pby jwxie - Nginx Mailing List - English
Hi Jonathan Thanks for helping! It's a critical blocker. I understand the HTTP spec there. To make it short, how do I enforce that client to POST (an eventually PUT, DELETE, GET, ) correctly? I mean this is not a custom situation. Pretty sure many production servers are running in a similar config (user hits a public ip on 443 and then redirects to an internal server). If you are intereby jwxie - Nginx Mailing List - English
My proxy server runs on ip A and this is how people access my web service. The nginx configuration will redirect to a virtual machine on ip B. For the proxy server on IP A, I have this in my sites-available server { listen 443; ssl on; ssl_certificate nginx.pem; ssl_certificate_key nginx.key; client_max_body_size 200M; server_name localby jwxie - Nginx Mailing List - English
No one has an answer to my question, so I figured out a solution: http://forum.nginx.org/read.php?2,226823,226849#msg-226849 I had to replace `$host` with `$http_host` to get my problem resolved... But is this safe? It seems like all `$http_host` is doing is to exposed the whole `HOST` from header. The explination http://forum.nginx.org/read.php?2,213799 here is still not clear to me..by jwxie - Nginx Mailing List - English
So I came up with a simple solution...as my own answer... proxy_set_header Host $host; $host should be replaced with $http_host, although I am not quite sure the meaning of either.by jwxie - Nginx Mailing List - English
Same post is made here: http://serverfault.com/questions/392530/nginx-when-tunnel-the-url-redirects-without-port-number But I will make a shorter version (as much as possible) I want to be able to ssh-tunnel into my Django website, so I can work remotely. I've tested a simple Django project on my personal computer, with very simple nginx configuration (starter, default). I tunnel and redirectionby jwxie - Nginx Mailing List - English
hi brian, thank you for the help, apparently we have to do it manually - via sudo aptitude search, then press U and G to install the upgradeable package I see my nginx is now 0.7.6.1 - is there anything else i need to check to make sure everything is updated? Thank you for the help - same things goes to Jeff's hard work making these packages.by jwxie - Nginx Mailing List - English
Hi there, I am new to Nginx. For Apache, you use .htaccess to do most of the tricks. For example, to specific an index file you can write the following into the .htaccess file. DirectoryIndex index.php index.html index.jsp Now if you have index.php, whenever you enter your domain (without any file included) will load up to your index.php - that's your default as setup by the htaccess.by jwxie - How to...
![]() |
![]() |
![]() |
![]() |
![]() |