Nginx Error - HTTPS

Dan W

New Member
Hi all,

Apologies if I have posted this in the wrong section of the forum but I could not find anywhere else to post this. I am relatively new to nginx and have installed and configured it as a reverse proxy. All the virtual hosts I have set up thus far are working fine. The problem has arisen with the setting up of my first virtual host listening on port 443 and proxy passing to a https upstream server. Once configuring the file, when I then go to reload the nginx service I get the error "Job for nginx.service failed because the control process exited with error code...". I did some investigating and thought maybe I needed to recompile the whole installation with the ssl module (--with_http_ssl_module) but I have nginx and nginx-common installed (I installed with the apt package manager) and according to my research, the ssl module should already come with nginx-common (unless there is something I am missing? Do I need to enable it somehow?). Please find the code for my reverse proxy configuration below. Any help is greatly appreciated!

server {
    listen 443 default SSL;
    server_name example.local www.example.local;
    ssl_prefer_server_ciphers on;
    ssl_protocols TLVv1 SSLv3;
    ssl_ciphers RC4:HIGH:!aNULL:!MD5:@STRENGTH;
    ssl_session_cache shared:WEB:10m;
    ssl_certificate /etc/nginx/ssl/ssl.crt;
    ssl_certificate_key /etc/nginx/ssl/ssl.key;
    index index.htm index.html index.php
    location / {
        proxy_set_header X-Forwarded-Proto https;
        proxy_pass https://server.local;