The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

AutoSSL failing

Discussion in 'Security' started by Gavpeds, Mar 23, 2017.

Tags:
  1. Gavpeds

    Gavpeds Member

    Joined:
    Jan 31, 2017
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Cornwall
    cPanel Access Level:
    Root Administrator
    Hi all i am having an issue with one site that runs on software called Moosocial. For this site the auto ssl keeps failing.

    Code:
     11:08:04 AM WARN The domain “example.com” failed domain control validation: The system queried for a temporary file at “<a href="http://example.com/CB0B4E96C763170CC380F975070E859C.txt">http://example.com/CB0B4E96C763170CC380F975070E859C.txt</a>”, but the web server responded with the following error: 500 (Internal Server Error). A <abbr title="Domain Name System">DNS</abbr> or web server misconfiguration may exist. at bin/autossl_check.pl line 565.
     11:08:04 AM WARN The domain “www.example.com” failed domain control validation: The system queried for a temporary file at “<a href="http://www.example.com/D93409EAC773BBFE44C6A4B7E5BA6E58.txt">http://www.example.com/D93409EAC773BBFE44C6A4B7E5BA6E58.txt</a>”, but the web server responded with the following error: 500 (Internal Server Error). A <abbr title="Domain Name System">DNS</abbr> or web server misconfiguration may exist. at bin/autossl_check.pl line 565.
     11:08:04 AM WARN The domain “mail.example.com” failed domain control validation: The system queried for a temporary file at “<a href="http://mail.example.com/20462063B6E57CB3DAB1FF94B5A227C7.txt">http://mail.example.com/20462063B6E57CB3DAB1FF94B5A227C7.txt</a>”, but the web server responded with the following error: 500 (Internal Server Error). A <abbr title="Domain Name System">DNS</abbr> or web server misconfiguration may exist. at bin/autossl_check.pl line 565.
    I wonder if anyone has any ideas. Moosocial seem to have some funky redirect where the main website files are under public_html/app/webroot and htaccess file is this.

    Code:
    <IfModule mod_rewrite.c>
       RewriteEngine on
        # Uncomment if you have a .well-known directory in the root folder, e.g. for the Let's Encrypt challenge
        # https://tools.ietf.org/html/rfc5785
        # RewriteRule ^(\.well-known/.*)$ $1 [L]
       RewriteRule    ^$ app/webroot/    [L]
       RewriteRule    (.*) app/webroot/$1 [L]
    </IfModule>
    How can i get auto ssl to work for this site?
     
    #1 Gavpeds, Mar 23, 2017
    Last edited by a moderator: Mar 23, 2017
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,999
    Likes Received:
    1,275
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You'd need to add some additional exclusions in your Mod_Rewrite .htaccess entry to allow access to the TXT files. EX:

    Code:
    RewriteRule .*\.txt - [L]
    Thank you.
     
  3. Gavpeds

    Gavpeds Member

    Joined:
    Jan 31, 2017
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Cornwall
    cPanel Access Level:
    Root Administrator
    Thanks but sadly that didn't seem to work.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,999
    Likes Received:
    1,275
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  5. Gavpeds

    Gavpeds Member

    Joined:
    Jan 31, 2017
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Cornwall
    cPanel Access Level:
    Root Administrator
    Just been talking to mooSocial and their script uses cakephp.

    The webroot is at app/webroot along with the htaccess file. Although all folders and files for the script are installed at domain.com/ their script somehow makes domain.com/app/webroot the root.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,999
    Likes Received:
    1,275
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Yes, that looks to be done through the Mod_Rewrite rules you provided. You may want to contact the provider and ask them for the specific rule to add in order to exclude TXT files from that redirect.

    Thank you.
     
Loading...

Share This Page