Hello all,
Here my setup:
- I have Unraid 6.9.2;
- I'm using a custom Cert for SSL. That certificate has a custom CA (internal CA for my home lab) and is using ecdsa-with-SHA512 (secp384r1) by pfsense;
- I follow this tutorial to install the cert: https://www.target-bravo.com/blog/2018/7/10/blog-headline-1-6y3tj-49m5s-7tbal-56sar;
- After a reboot, NGINX doesn't load up (no webgui);
- When I type nginx in the console, I have the following error: nginx: [emerg] invalid number of arguments in "return" directive in /etc/nginx/conf.d/emhttp-servers.conf:39;
- When I go to line 39 using nano /etc/nginx/conf.d/emhttp-servers.conf, I'm able to change the line to
return 302 https://$host$request_uri;
- Before the change, the line had return 302 https://HOSTNAME hostname$request_uri or something arounds the lines, when hostname is the actual server hostname;
It's unclear at this point what caused this, but here's an easy fix for anyone having the issue! Also, I'm not too sure if this will get erased at every reboot, maybe there's a way to write that change to the flash drive?
Have a good day!
Recommended Comments
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.