Welcome! Log In Create A New Profile

Advanced

using nginx as proxy from http to https

October 25, 2012 10:17AM
Hello,

I'm trying to use nginx as a proxy server that should dispatch HTTP requests to remote HTTPS server. Here are some configuration details which I'm using:

location /test_server {
proxy_pass https://testserver.testdomainserver.com:9090/;
proxy_set_header X-Real-IP $remote_addr;
}

The problem is that when I send request to the nginx server I get 505 error from remote server. If I execute the request directly to the remote server it works as expected. Some additional details that I can provide is that the remote server is using basic authorization and only accepts requests through HTTPS.

I also tried to bind server on port 443 with ssl on and certificates added, but when I try to use it, I get the following error:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

The configuration steps which I tried are explained in: http://wiki.nginx.org/HttpSslModule

Any idea how can I make it work ?
SubjectAuthorPosted

using nginx as proxy from http to https

mgenovOctober 25, 2012 10:17AM

Re: using nginx as proxy from http to https

Francis DalyOctober 25, 2012 12:08PM

Re: using nginx as proxy from http to https

mgenovOctober 25, 2012 12:20PM

Re: using nginx as proxy from http to https

Andre JaenischOctober 25, 2012 03:04PM

Re: using nginx as proxy from http to https

mgenovOctober 29, 2012 10:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 49
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready