Welcome! Log In Create A New Profile

Advanced

https proxy to apache server

Jelle de Jong
January 10, 2012 06:22AM
I got an namebased vhost apache server running on 192.168.24.66 for
calendar.powercraft.nl on both port 80 and 443.

I need nginx to make a proxy pass for port 443 to the apache server. I
don't mind if it uses the port 80 or 443 with ssl to proxy the data.

I tried the bellow and some variations based on some docs. and wiki
pages I found, but I cant get it to work for port 443

server {
listen 443;
server_name calendar.powercraft.nl;
ssl on;
ssl_certificate /etc/ssl/certs/yessica-certificate.pem;
ssl_certificate_key /etc/ssl/certs/yessica-privatekey.pem;
access_log /var/log/nginx/calendar.secure.log;
error_log /var/log/nginx/calendar.error-secure.log;
location / {
#proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
proxy_pass http://192.168.24.66/;
}
}

https://calendar.powercraft.nl/ is giving me SSL received a record that
exceeded the maximum permissible length. (Error code:
ssl_error_rx_record_too_long)

Does somebody know what I am doing wrong and may provide a working
example to make a https proxy with nginx to an apache server?

I tried searching the mailing-list archive for the last year but didn't
find a similar question. (my apologies if I missed something)

Thanks in advance,

Kind regards,

Jelle de Jong

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

https proxy to apache server

Jelle de Jong January 10, 2012 06:22AM

Re: https proxy to apache server

Brian Akins January 10, 2012 06:58AM

Re: https proxy to apache server

Jelle de Jong January 10, 2012 07:14AM

Re: https proxy to apache server

Maxim Dounin January 10, 2012 09:40AM

Re: https proxy to apache server

Jelle de Jong January 10, 2012 10:18AM

Re: https proxy to apache server

Jelle de Jong January 10, 2012 11:14AM

Re: https proxy to apache server

Brian Akins January 10, 2012 01:58PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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