7 days later
11 days later

aaPanel_Kern Hi Kern, it's whatsapp-web.js with express service ... now it's redirect to 127.0.0.1 ... when i ping , it's reply ... and im checking pm2 list, it's online..

i'm no familiar with nodejs project in aapanel, just test on my localhost or heroku it's working, try in vpn with aapanel, not work.

any clue kern?

    aaPanel_Kern it's show message all ready in use.

    2022-08-23T15:17:39: Port 3000 is already in use
    2022-08-23T15:17:40: Port 3000 is already in use
    2022-08-23T15:17:41: Port 3000 is already in use
    2022-08-23T15:17:43: Port 3000 is already in use
    2022-08-23T15:17:44: Port 3000 is already in use

    before that, i'm using 3000 port for gitea, but gitea has been terminated and clean. now i'm using for -nodejs.. it's mean port 3000 is used by others?

      aaPanel_Kern its just 1 line

      tcp6       0      0 :::3000                 :::*                    LISTEN      896/httpd  

      it's normal

        aaPanel_Kern I think it's not relate to https/apache, when i remove thats port from SYS FIREWALL, it's not listen again.

        but when i'm access waapi.persahabatan.co.id, it redirect to 127.0.0.1 ..

        and i'm attache .htaccess in root folder project

        RewriteEngine on
        RewriteRule (.*) http://192.168.150.29:3000/$1 [P,L]
        DirectoryIndex disabled

        really dont' know whats going on.

          aaPanel_Kern i check my config in node project

          <VirtualHost *:80>
              ServerAdmin admin@waapi
              DocumentRoot "/www/wwwroot/waapi.persahabatan.co.id/bin"
              ServerName 80.waapi
              ServerAlias waapi.persahabatan.co.id
              #errorDocument 404 /404.html
              ErrorLog "/www/wwwlogs/waapi-error_log"
              CustomLog "/www/wwwlogs/waapi-access_log" combined
          
              #HTTP_TO_HTTPS_START
              <IfModule mod_rewrite.c>
                  RewriteEngine on
                  RewriteCond %{SERVER_PORT} !^443$
                  RewriteRule (.*) https://%{SERVER_NAME}$1 [L,R=301]
              </IfModule>
              #HTTP_TO_HTTPS_END
          
              #DENY FILES
               <Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md|package.json|package-lock.json|\.env)$>
                 Order allow,deny
                 Deny from all
              </Files>
          
              #SSL
              ProxyPass /.well-known/ !
          
              # HTTP reverse proxy related settings begin >>>
              <IfModule mod_proxy.c>
                  ProxyRequests Off
                  SSLProxyEngine on
                  ProxyPass / http://127.0.0.1:3001/
                  ProxyPassReverse / http://127.0.0.1:3001/
              </IfModule>
              # End of HTTP reverse proxy related settings <<<
          </VirtualHost>
          <VirtualHost *:443>
              ServerAdmin admin@waapi
              DocumentRoot "/www/wwwroot/waapi.persahabatan.co.id/bin"
              ServerName 443.waapi
              ServerAlias waapi.persahabatan.co.id
              #errorDocument 404 /404.html
              ErrorLog "/www/wwwlogs/waapi-error_log"
              CustomLog "/www/wwwlogs/waapi-access_log" combined
          
              #SSL
              SSLEngine On
              SSLCertificateFile /www/server/panel/vhost/cert/waapi/fullchain.pem
              SSLCertificateKeyFile /www/server/panel/vhost/cert/waapi/privkey.pem
              SSLCipherSuite EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5
              SSLProtocol All -SSLv2 -SSLv3 -TLSv1
              SSLHonorCipherOrder On
          
              #DENY FILES
               <Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md|package.json|package-lock.json|\.env)$>
                 Order allow,deny
                 Deny from all
              </Files>
          
              #SSL
              ProxyPass /.well-known/ !
          
              # HTTP reverse proxy related settings begin >>>
              <IfModule mod_proxy.c>
                  ProxyRequests Off
                  SSLProxyEngine on
                  ProxyPass / http://127.0.0.1:3001/
                  ProxyPassReverse / http://127.0.0.1:3001/
              </IfModule>
              # End of HTTP reverse proxy related settings <<<
          </VirtualHost>

          where must i check redirect? apps project or apache config?

          this is result

          tcp6 0 0 :::3000 :::* LISTEN -

            Connect with us: 📨 Telegram 💬 Discord Email: support@aapanel.com