Hello everyone,
I have a probleme with my node app maximmo.online, and my VPS. When I go to my app via http, the app work fines.
But when I go with https, my function wich is listening on port 3000, is not responding. I installed the ssl certificate via lets encrypt.
Here is the code inside my file "maximmo.online.conf"
Could you please help me ?
I am getting headaches since 2 days...
Thank you so much
I have a probleme with my node app maximmo.online, and my VPS. When I go to my app via http, the app work fines.
But when I go with https, my function wich is listening on port 3000, is not responding. I installed the ssl certificate via lets encrypt.
Here is the code inside my file "maximmo.online.conf"
Code:
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName maximmo.online
ServerAlias www.maximmo.online
ProxyRequests Off
ProxyPreserveHost On
ProxyVia Full
<Proxy *>
Require all granted
</Proxy>
<Location /nodejs>
ProxyPass http://212.x.x.228:3000
ProxyPassReverse http://212.x.x.228:3000
</Location>
DocumentRoot /var/www/maximmo.online/public_html/app
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:443>
ServerAdmin [email protected]
ServerName maximmo.online
ServerAlias www.maximmo.online
ProxyRequests Off
ProxyPreserveHost On
ProxyVia Full
<Proxy *>
Require all granted
</Proxy>
<Location /nodejs>
ProxyPass https://212.x.x.228:3000
ProxyPassReverse https://212.x.x.228:3000
</Location>
SSLEngine On
SSLCertificateFile /etc/letsencrypt/live/maximmo.online/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/maximmo.online/privkey.pem
DocumentRoot /var/www/maximmo.online/public_html/app
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Could you please help me ?
I am getting headaches since 2 days...
Thank you so much