Menu
X
Home Samples Web Design Hosting for China Chinese Translation Wechat Marketing Baidu SEO Google SEO Wordpress Setup Prices FAQs About Blog for Clients Blog for Devlopers About China Contact Login
How to Setup Node apps and Websites on cPanel
Date Created: 2020-12-30

I'm going to summarize the requirements here, but for your express app to show up on a live cpanel server you need to pay special attention to the part in the video below which deals with modifications to the .htaccess file. You will also need to set an environment variable relating to your PORT. For example, I may have my node app listening on port 3000, but nobody is going to remember or think as a user to type in that port number. So, note the video will touch on that key conceptual step: allowing normal users to "come in" to the app as they normally would via port 80, but our htaccess file and port variable will be changed via a modification to an ENVIRONMENT variable. The video below shows EXACTLY how to modify your .htaccess file. Remember, we are getting Apache server to hand off requests

Title: How to Setup Node apps and Websites on cPanel
Date Created: 2020-12-30

I'm going to summarize the requirements here, but for your express app to show up on a live cpanel server you need to pay special attention to the part in the video below which deals with modifications to the .htaccess file. You will also need to set an environment variable relating to your PORT. For example, I may have my node app listening on port 3000, but nobody is going to remember or think as a user to type in that port number. So, note the video will touch on that key conceptual step: allowing normal users to "come in" to the app as they normally would via port 80, but our htaccess file and port variable will be changed via a modification to an ENVIRONMENT variable. The video below shows EXACTLY how to modify your .htaccess file. Remember, we are getting Apache server to hand off requests
© 2019, All Rights Reserved, Sitemap
My ID: ruanjianfanyi
Home Samples Web Design Hosting for China Chinese Translation Wechat Marketing Baidu SEO Google SEO Wordpress Setup Prices FAQs About Blog for Clients Blog for Devlopers About China Contact Login 2019 All Rights Reserved Sitemap Website by: SZ Web Dev