jeudi 22 mars 2018

How Do You Change The Default Page on A2 Hosting Server To EJS File?

On A2 Hosting I am trying to get my node website up and running. I purchased a domain from GoDaddy and reconfigured the DNS to point to the A2 VPS and I installed node and npm on the server. My problems are coming from actually getting the server to display the correct page. This is what my /public_html directory looks like (which also contains a .htaccess file that points to launch-pad/views/index.ejs): enter image description here

And this is what the actual node project looks like:

enter image description here

I don't really know what index.php or robots.txt do. What I want to do is start my server using node app.js. If I do that and go to my site it shows the default A2 "Work In Progress" page. My main question is, is how can I make the server display index.ejs once I run node app.js?

P.S. I am very inexperienced in web hosting so if there is something obvious I didn't do, I apologize. Thank you.




Aucun commentaire:

Enregistrer un commentaire