Welcome! Log In Create A New Profile


Nginx Service Failed Error

Posted by Dan W 
Nginx Service Failed Error
July 30, 2019 12:19PM
Hi all, I am new to this forum. ApoIogies, if I have posted this in the wrong section. 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;
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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