Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

cpanel - Phusion Passenger + Apache + Node.js app runs on http but not https. 404 Error

I have a Phusion Passenger Node.js application configured with cPanel that ran perfectly on my primary domain. I created a new application that uses the same path but switched the domain to another domain on my account. On the old domain: ghv.xie.mybluehost.me, the application worked on both http and https.

http://ghv.xie.mybluehost.me/portal https://ghv.xie.mybluehost.me/portal

On the new domain: csmithcpa.com, the app only works on http. https returns a 404 error.

http://csmithcpa.com/portal https://csmithcpa.com/portal

I am not sure how to debug this or why it would return a 404 at all on https but completely work on http. Any help would be fantastic.

EDIT: I will keep adding useful information for debugging as more people ask questions about it.

cPanel/WHM access
Apache server
Phusion Passenger application manager
Node.js web application

-portal
--app.js
--node_modules
-public_html
--ghv.xie.mybluehost.me site files
--csmithcpa
---csmithcpa.com site files

question from:https://stackoverflow.com/questions/65927273/phusion-passenger-apache-node-js-app-runs-on-http-but-not-https-404-error

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...