Deploying website with Node.js Express on VPS OpenLiteSpeed

#1
Hello there!

I've been working on an JS Angular website that has a frontend/backend and using Node.js Express.

I purchased a VPS from Hostinger and loaded Ubuntu 22.04 64bit with OpenLiteSpeed and Node.js

I was able to get to the OpenLiteSpeed Dashboard and started using tutorials to setup my Virtual Host correctly.

I was able to logon to the hosting server from my local CMD using: ssh root@use_your_server_ip

then I cloned my repository from github and managed to even update the Node.js version to the latest.

the problem started when i was trying to check if my website was up and running on the IP that was given to my VPS.

at the beginning there was a example directing me to a hello world message on that IP but when i tried to change it to the correct directory using the Virtual Host it all went wrong.

now when i try to go to the IP on my browser it shows:
404
Not Found
The resource requested could not be found on this server!

my Virtual host:
Base
Virtual Host Name: $VH_NAME (website-name)
Virtual Host Root: $SERVER_ROOT/art-store/backend/
Config File: $SERVER_ROOT/conf/vhosts/$VH_NAME/vhconf.conf

General
Document Root: $VH_ROOT
Domain Name: IP_Address given to the VPS (my domain name is still being transferred)

App Server Context Definition
URI: /
Location: $VH_ROOT
Binary Path:
Application Type: Node
Startup File: NODE_ENV=production node dist/server.js

how do i get the VPS to load my website?
I don't know what else to do and any help would be greatly appreciated!
 
Top