September 07, 2010 02:44AM
On Tue, Sep 07, 2010 at 01:11:22AM -0400, jlangevin wrote:

> I've successfully configured Nginx on an Ubuntu 10.04 box, serving up a
> dynamic PHP website.
> We need to be able to reverse proxy this website, which I've also been
> able to do, as:
>
> www frontend (nginx reverse proxy)
> www1 backend (nginx php webserver)
>
> The intention is to be able to add/remove backend servers at will.
>
>
> The only issue I have so far, is that the frontend, as configured, does
> not proxy SSL requests.
> How can I enable this on my configuration?

http://nginx.org/en/docs/http/configuring_https_servers.html

> Please note, the backend server *does* have functioning SSL config, and
> was tested directly to verify both :80 and :443 work as intended.

You may proxy to SSL:

location / {
proxy_pass https://backend;
}

however, it's better to leave SSL only on nginx side and proxy SSL to
plain HTTP:

server {
listen 443;
ssl on;
# other ssl stuff

location / {
proxy_pass http://backend;
}


--
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx Reverse Proxy - HTTP[S] support?

jlangevin September 07, 2010 01:11AM

Re: nginx Reverse Proxy - HTTP[S] support?

Igor Sysoev September 07, 2010 02:44AM

Re: nginx Reverse Proxy - HTTP[S] support?

jlangevin September 07, 2010 07:38AM

Re: nginx Reverse Proxy - HTTP[S] support?

Igor Sysoev September 07, 2010 07:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 164
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