# NGINX + Reverse Proxy + SSL

**URL:** <https://www.ruby-forum.com/t/nginx-reverse-proxy-ssl/207726>\
**Category:** NGINX\
**Created:** [June 1, 2011, 12:47pm UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-ssl/207726 "2011-06-01T12:47:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [June 1, 2011, 12:47pm UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-ssl/207726/1 "2011-06-01T12:47:10Z")

</div>

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 😉

Myckeul

Posted at Nginx Forum:

> **[NGINX + Reverse Proxy + SSL](https://forum.nginx.org/read.php?2,202710,202710#msg-202710)**
>
> 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...

---

<div class="post-metadata">

**Author:** ![myckeul](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/da6949/32.png) [@myckeul](https://www.ruby-forum.com/u/myckeul)\
**Post date:** [June 1, 2011, 12:49pm UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-ssl/207726/2 "2011-06-01T12:49:01Z")

</div>

On Wed, Jun 01, 2011 at 06:46:35AM -0400, myckeul wrote:

> server {  
> }
> 
> Thanks for your help if you have any idea 😉

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

–  
Igor S.
