Seafile and LetsEncrypt

  • Debian Jessie 64bit
    IMSCP 1.3.11


    Hello,


    I am trying to install seafile and using Letsencrypt to support ssl.


    I always get this error code:


    HTML
    1. IMPORTANT NOTES:- The following errors were reported by the server:Domain: www.cloud.xxx.deType: unauthorizedDetail: Invalid response fromhttp://www.cloud.xxx.de/.well-known/acme-challenge/kUvtuE3C7P33lKDuN0hPKbjumHGuGD9V3DJynDRJ2XQ:"<!DOCTYPE html><html lang="en"><head><title>Private Seafile</title><meta http-equiv="Content-type" content="text/html; ch"Domain: cloud.xxx.deType: unauthorizedDetail: Invalid response fromhttp://cloud.xxx.de/.well-known/acme-challenge/nE_ovYIe41c6ZrBkOPvRVxPpYiXWgvgfWQaMdBtyE5E:"<!DOCTYPE html><html lang="en"><head><title>Private Seafile</title><meta http-equiv="Content-type" content="text/html; ch"To fix these errors, please make sure that your domain name wasentered correctly and the DNS A record(s) for that domaincontain(s) the right IP address.


    I tried to allow the acess to this folder. I created this folder in /media and I tried to Redirect the folder in the normal htdocs, but there also does no folder exist like .well-known.



    maybe someone can help me how to active ssl with the letsecrypt plugin in a proper way.

  • Solution: Add this Rewrite Condition to the Howto RewriteConditions from UncleSam


    RewriteCond %{REQUEST_URI} !(.*/\.well-known/acme-challenge/.*)

  • @Nuxwin mentioned that this rewrite rule is not normal. So I am posting now my apache config. Maybe someone of you find teh problem. I used the Apache Vhost Config from UncleSams How to Host your own SeaFile cloud (with ssl support)


    Thisis my modified apache vhost:


    I think the other rewrite rules in the conf could lead to my experienced error with the LetsEncryptt Plugin

  • Best is to show us the vhost file (unmodified) that you used when the error occurred.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Code
    1. cat /etc/apache2/imscp/before/vhost.conf

    ???

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Code
    1. Alias /.well-known/acme-challenge/ /var/www/virtual/LetsEncrypt/.well-known/acme-challenge/
    2. <Directory /var/www/virtual/LetsEncrypt/.well-known/acme-challenge/>
    3. <IfModule mpm_itk_module>
    4. AssignUserId www-data www-data
    5. </IfModule>
    6. Require all granted
    7. Satisfy any
    8. </Directory>
  • Well, this should be ok normally.


    Also, request for ACME should not lead to rewrite since you have:


    Code
    1. RewriteCond %{REQUEST_FILENAME} !-f


    At least, this should work with i-MSCP 1.3.12 and newest.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • thx.


    Im going to upgrade within the next few days.


    But I think I am not going to delete this rewrite condition:


    RewriteCond %{REQUEST_URI} !(.*/\.well-known/acme-challenge/.*)



    This is not going to make it worse and it worked once only with this condition.