Jump to content
  • [6.7.0] Wildcard Cert and Nginx Configuration Error


    fl0at
    • Minor

    Creating a certificate_bundle.pem in /boot/config/ssl/certs and using a wildcard certificate will result in a Nginx configuration error in /etc/nginx/conf.d/emhttp-servers.conf

     

    It looks like that the common name of the cert is being used in the configuration, around like 40, in this section:

     

        #
        # Redirect http requests to https
        #
        listen *:80 default_server;
        listen [::]:80 default_server;
        return 302 https://*.example.com:443$request_uri;

     

    Changing this from https://*.example.com to https://subdomain.example.com and running nginx -s reload will fix the issue.

     

    The issue is that port 80 redirects result in a corrupted content error in FireFox.  Have not tested other browers.




    User Feedback

    Recommended Comments

    There are no comments to display.



    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.

×
×
  • Create New...