• [6.9.2] NGINX won't load while using custom SSL Certs


    TechKnowCase
    • Minor

    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!




    User Feedback

    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.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

     

    Open = Under consideration.

     

    Solved = The issue has been resolved.

     

    Solved version = The issue has been resolved in the indicated release version.

     

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

    Retest = Please retest in latest release.


    Priority Definitions

     

    Minor = Something not working correctly.

     

    Urgent = Server crash, data loss, or other showstopper.

     

    Annoyance = Doesn't affect functionality but should be fixed.

     

    Other = Announcement or other non-issue.