Lets Encrypt SSL fails to renew when using custom proxy config in website

Discussion in 'Tips/Tricks/Mods' started by seopower, Feb 9, 2023.

  1. seopower

    seopower New Member

    I have a sub domain on which I am running a Node JS backend and for that I have use Apache Directive under options as given below:

    Code:
    ProxyRequests Off
    ProxyPreserveHost On
    ProxyVia Full
    
    <Proxy *>
        Require all granted
    </Proxy>
    
    ProxyPass / http://127.0.0.1:3000/
    ProxyPassReverse / http://127.0.0.1:3000/
    Probably due to this SSL fails to renew and every three months I have to remove this directive then uncheck SSL and then recheck SSL to renew and add this apache directive back in options.
    Do we have any workaround so that SSL gets renew without removing apache directive??
     
  2. pyte

    pyte Well-Known Member HowtoForge Supporter

    You could add the following before the ProxyPass to the directive which should work:
    Code:
    <Location /.well-known/acme-challenge>
         ProxyPass !
    </Location>
     
    till, ahrasis and seopower like this.
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    I moved the thread to the tips & tricks section and altered the title, so this solution is easier to be found by other users.
     
  4. remkoh

    remkoh Active Member HowtoForge Supporter

    Or you can insert just a single line
    Code:
    ProxyPass /.well-known/acme-challenge !
    in front of
    Code:
    ProxyPass / http://127.0.0.1:3000/
    ProxyPassReverse / http://127.0.0.1:3000/
     
    Last edited: Feb 10, 2023
    ahrasis and seopower like this.
  5. seopower

    seopower New Member

    I have added that, lets see after 3 months. Will update.
     
  6. pyte

    pyte Well-Known Member HowtoForge Supporter

    You could force renew it to check if it works.
     

Share This Page