All Questions
7 questions
0
votes
1
answer
289
views
Sending cache headers only for a single request [or for a request following a certain path string]
I have the proxy pass in nginx config defined as follows:
location / {
proxy_pass http://localhost:3001;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $...
3
votes
1
answer
6k
views
nginx - proxy_pass on user_agent
I have a SPA site, where I need to load the appropriate <meta> tags for each subpage, but it is not that easy from the subpages themselves so I made a separate address where Facebook or Twitter ...
1
vote
1
answer
8k
views
Nginx Proxy Pass - Return Status code form upstream site
How do I return the HTTP STATUS CODE from the http://127.0.0.1:8080/
Example:
http://127.0.0.1:8080/api/example returns a 500 then when accessing ttp://127.0.0.1/api/example it should also return ...
2
votes
1
answer
2k
views
Rewriting client "Host" http header before nginx validates the field
I get following request from a device and should proxy it to hd10.vtech.com:
GET http://hd10.vtech.com/test/pp_firmware/HD10-CH010_SUOTA.bin HTTP/1.1
Host: http://hd10.vtech.com/test/...
4
votes
0
answers
6k
views
Set CORS headers on nginx
Addresses like http://vpsxxx.ovh.net/g/search?q=ok or http://vpsxxx.ovh.net/so/questions/34738694/how-to-move-items-on-the-screen-for-a-game-using-javascript are proxied well, when trying them from ...
0
votes
0
answers
393
views
X Forwarded For Showing Origin IP
My X-Forwarded-For header is showing my origin IP. I am routing traffic via Cloudflare and I know it's touchy with that header. I changed it to MYNAME-Forwarded-For just to check and it still shows ...
0
votes
1
answer
1k
views
nginx proxy_pass receive content/status headers when http 4xx
Was having some trouble as chronicled here - https://stackoverflow.com/questions/22570550/play-2-2-1-simpleresult-4xx-response-body-possible-via-cors-xhr
But I didn't focus on nginx since the 200 OK ...