Changing DocumentRoot will cause lets encrypt to fail.

Discussion in 'Installation/Configuration' started by martinhe, Jul 28, 2025.

  1. martinhe

    martinhe Member

    Hello, please advise if I change Document root to DocumentRoot /var/www/clients/client1/web2/web/current/backend
    So acme stores the token in

    [Mon Jul 28 11:49:13 CEST 2025] wellknown_path='/usr/local/ispconfig/interface/acme/.well-known/acme-challenge'

    [Mon Jul 28 11:49:13 CEST 2025] Writing token: 5Ti21dFSBtCS9Y1eaTGIxt-zQYcD_A7RMO1VLg0nBWc to /usr/local/ispconfig/interface/acme/.well-known/acme-challenge/5Ti21dFSBtCS9Y1eaTGIxt-zQYcD_A7RMO1VLg0nBWc

    But I think that's the wrong way, it should be stored correctly here:

    /var/www/clients/client1/web2/web/current/backend/.well-known/acme-challenge/5Ti21dFSBtCS9Y1eaTGIxt-zQYcD_A7RMO1VLg0nBWc

    How can I solve this please?
    Can Ispconfig 3.2.8p1 do it?

    Thank you very much.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    That's correct and as it should be.

    No, it shall not be in that path.

    Also, changing docroot of a website has no influence on Let's Encrypt as the directory for validating challenges is not inside the website docroot.
     
    martinhe likes this.
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    martinhe likes this.
  4. martinhe

    martinhe Member

    I understand now, thank you for the information. The error was on my application's side.
     
    till likes this.

Share This Page