<VirtualHost *:80>
ServerAdmin
[email protected]
ServerName
www.api.waziper.com
ServerAlias
www.api.waziper.com
DocumentRoot /var/www/api.waziper.com/public_html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Location />
ProxyPass
http://127.0.0.1:8000/
ProxyPassReverse
http://127.0.0.1:8000/
</Location>
RewriteEngine on
RewriteCond %{SERVER_NAME} =api.waziper.com [OR]
RewriteCond %{SERVER_NAME} =
www.api.waziper.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
This is the config file for the api.waziper.com.conf
make sure it is the same domain
* * * * * sh -c 'cd /var/www/waziper && node app' - create this cronjobwith the API folder as Destination