upstream server are always redirected as https

henn1nk nginx-forum at nginx.us
Fri Jun 29 07:10:41 UTC 2012


I am always redirect to https://mydomain .... How can i STOP this?


upstream navi_profi_server {
	server unix:/tmp/navi-profi.sock fail_timeout=0;
}

server {
	listen 80;
	client_max_body_size 4G;
	server_name _;
	keepalive_timeout 5;
	root /home/navi-profi/app/current/;

	location / {
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
		proxy_set_header Host $http_host;
		proxy_redirect off;

		if (!-f $request_filename) {
			proxy_pass http://navi_profi_server;
			break;
		}
	}

	error_page 500 502 503 504 /500.html;
	location = /500.html {
		root /home/navi-profi/app/shared/public;
	}
}

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,228086,228086#msg-228086



More information about the nginx mailing list