You need to setup second server section, where you should configure ssl
and copy your location(s),
"servers" part of my config looks like, where server.conf contains
locations:
server {
server_name xxxxxxxxxxxxxxxx;
listen zzzzzz:80;
access_log /data01/www/trading/logs/access_log.nossl;
error_log /data01/www/trading/logs/error_log.nginx warn;
include conf/server.conf;
}
server {
listen zzzzz:443;
server_name xxxxxxxxxxxxxxxxxxxxxx;
ssl on;
ssl_certificate /usr/local/nginx/conf/ssl.cert/server.cert;
ssl_certificate_key /usr/local/nginx/conf/ssl.key/server.key.unsecure;
ssl_session_cache shared:TRADING:150m;
ssl_session_timeout 10m;
access_log /data01/www/trading/logs/access_log.ssl;
error_log /data01/www/trading/logs/error_log.nginx warn;
include conf/server.conf;
}
dm.dv@xxxxxxx wrote:
Hi ALL!
Sorry for my silly question. I?m tying to set up NGINX as a reverse
proxy to translate HTTP->HTTPS.
Frontend (NGINX) and Backend (Sun Webserver 7.0) are situated at
different servers.
HTTP->HTTP work without any problem, but I cannot make works
HTTP->HTTPS (if it is possible at all).
OS: sun solaris 10 (sparc). Could you please tell me what I?m doing
WRONG.