Hi Francis,
I added rewrite command so that the url doesn't show IP passed to the nginx.
Curl gives a 302 because it doesnt have the sessionid with it. If there is a
session id that is passed to the application running on
http://23.23.234.234:8080/test, it will take us to app. I can see in
applic
Hi,
I did a curl on the url - curl -i https://example.com/23.23.234.234
HTTP/1.1 302 Found
Date: Sat, 02 Nov 2013 01:37:47 GMT
Location: https://marketplace.example.com/marketplace/marketplace/login
Server: nginx/1.4.2
Content-Length: 0
Connection: keep-alive
Which is correct. But when I submit
Thanks Francis. I could finally see the post parameters at server end.
Setting proxy_set_header Host $1; changes the browser url which we donot
want. Currently, the code looks like-
location ~ /(?[0-9].*) {
rewrite $(.*)$ https://$http_host/test last;
proxy
Thanks Francis. I was able to get past this issue. Appreciate all the help.
Now I am stuck at forwarding the POST parameters to this proxy server.
proxy_pass http://$1:8080/clarity;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_redirect o
Thanks Francis.
I am making a GET call through browser like-
https://example.com/ec2..com
Error Logs-
2013/11/01 01:33:49 [error] 13086#0: *1 no host in upstream
"/ec2-xx-xxx-xxx-xxx..amazonaws.com:8080/test",
client: 10.10.4.167, server: clarity-test.cloud.tibco.com, request: "GET
/ec2-xx-xx-xx
Hi,
I need to do proxy_pass to host name passed in url and rewrite url as well.
Since the host name is difference with each request, I cannot provide an
upstream for it. Below is the nginx configuration I am using but it doesnt
do proxy pass and returns 404 error. The hostname resembles ec2...com.