Welcome! Log In Create A New Profile

Advanced

Re: NGINX + Reverse Proxy + SSL

June 01, 2011 06:50AM
On Wed, Jun 01, 2011 at 06:46:35AM -0400, myckeul wrote:
> Hello ;)
>
> As part of a project, I need to perform a reverse proxy to a server that
> runs apache https.
>
> I do not have the certificates on the destination server and I can not
> add them to nginx.
>
> I tried the following configuration but the site is unavailable:
>
> server {
> listen [::]:443 default ssl;
>
> server_name www.mydomain2.eu;
>
> access_log /var/log/nginx/www.mydomain2.eu.access.log;
>
> error_page 404 = /404.htm;
>
> location /404.htm {
> root /var/www;
> }
>
> location / {
> proxy_set_header X-Forwarded-Host $host;
> proxy_set_header X-Forwarded-Server $host;
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
>
> proxy_pass http://www.mydomain.eu;
> proxy_redirect http://www.mydomain.eu http://www.mydomain2.eu;
> }
> }
>
> Thanks for your help if you have any idea ;)

You have to have SSL certificate for www.mydomain2.eu.


--
Igor Sysoev

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

NGINX + Reverse Proxy + SSL

myckeul May 31, 2011 02:28PM

Re: NGINX + Reverse Proxy + SSL

Igor Sysoev June 01, 2011 06:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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