Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

App is working on http://mydomain.com, but is not working on https://mydomain.com

Guillaume

New Coder
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"
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
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom