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??
You could add the following before the ProxyPass to the directive which should work: Code: <Location /.well-known/acme-challenge> ProxyPass ! </Location>
I moved the thread to the tips & tricks section and altered the title, so this solution is easier to be found by other users.
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/