Hi everyone, brand new user of ispconfig, I find the tool really amazing! Nevertheless, I have some trouble using it alongside node.js: Installed ISPConfig Version: 3.1dev, created website, ssh users (jailed), issued certs (lets encrypt)... Currently running a http server on port 8001. No problem to access is through www mydomain com:8001 But I can't manage to configure in ispconfig the proxy to redirect from www mydomain com to www mydomain com:8001 : The redirection shows up in the address bar (ok sounds like cosmetics but wait for the next problem). The real deal is that I'm willing to deploy the NodeJs server under https. When I do the redirection, I have an error of SSL certificate (I issued them using letsencrypt, and they perfectly fine if no redirection). I guess the problem is that the redirection is not internal, and then not correct for the certificate issued. To test if I was right, I've tried changing the vhosts directly in /etc/apache2/sites-available to set ProxyPass and proxypassreverse / localhost:8001 but a2dissite/a2enssite pops up an error message (site does not exist). Would you have a solution ?? I'd love to do it directly inside ispconfig rather than manually changing it (all changes are reset when I reboot anyway) Thanks a lot for the help
Do not edit the vhost files manually. Pu the proxy directives into the apache directives field of the website in ISPConfig instead.
Thanks for the quick reply! Would this syntax be fine? <VirtualHost *> RewriteEngine On ProxyRequests Off ProxyPreserveHost on ProxyPass / http:// localhost:8001 ProxyPassReverse / http:// localhost:8001 <Proxy *> Order deny,allow Allow from all </Proxy> </VirtualHost >
The code gets added inside a virtualhost, so you do not add another one as virtualhosts can not be nested. Just add the proxy part: Code: ProxyRequests Off ProxyPreserveHost on ProxyPass / http:// localhost:8001 ProxyPassReverse / http:// localhost:8001 <Proxy *> Order deny,allow Allow from all </Proxy>