Steps to use Node.js application for addon domain

kumkumsharma

Administrator
Staff member
If you are installing Node.js for the main domain then there is no need to worry or make any changes, but if you are installing it on your addon domain then you can follow below steps:

When we are installing Node.js on our addon domain then sometime application will not create the SSL include file for addon domain. Mostly you will get this issue when the path of your application is different.

You can resolve this issue with below steps:
  • First you have to install your Node.js application.
  • After that you will find below file and this is non-SSL include file.
Code:
/etc/apache2/conf.d/userdata/std/2_4/cptest/addon-2.com/cptest-addon.conf
Here addon-2.com domain is addon domain.
  • Now you have to copy the *.conf file, for that you have copy it from “std” directory to “ssl” directory.
Code:
cp -a /etc/apache2/conf.d/userdata/std/2_4/cptest/addon-2.com/cptest-addon.conf /etc/apache2/conf.d/userdata/ssl/2_4/cptest/addon-2.com/cptest-addon.conf
  • Now we have completed our steps, now we have to rebuild and restart Apache.
Code:
/scripts/rebuildhttpdconf
/scripts/restartsrv_httpd
 
Top