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 ?
Subject Author Posted

using nginx as proxy from http to https

mgenov October 25, 2012 10:17AM

Re: using nginx as proxy from http to https

Francis Daly October 25, 2012 12:08PM

Re: using nginx as proxy from http to https

mgenov October 25, 2012 12:20PM

Re: using nginx as proxy from http to https

Andre Jaenisch October 25, 2012 03:04PM

Re: using nginx as proxy from http to https

mgenov October 29, 2012 10:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 293
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready