Nginx Service Failed

Discussion in 'Site & Server Administration' started by DanW99, Jul 31, 2019.

  1. #1
    Hi all, I am new to this forum. Please forgive me if I have posted this in the wrong section, it seemed like the area to ask my question. 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;
        }
    }
    Code (markup):
     
    DanW99, Jul 31, 2019 IP
  2. DanW99

    DanW99 Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #2
    I have been advised to post this in the Nginx section and so have done, thank you.
     
    DanW99, Jul 31, 2019 IP