Hi everyone,
Please bare with me as I'm quite new to developing but have 'made' my first API and now need to get it working more securely.
Target:
To get my api to be accessed via www.MyWebsite.com/myAPI instead of mywebsiteapi:3000
I will throw some details down and be as succinct as possible and if someone could please point me in the right direciton it would be amazing.
When I test this with Postman the port 3000 reference call will work, but when I try the /myapi call it doesnt work, there is no response, just a continued 'waiting for response'
Where do i look now to figure this out please because I want to get this working
Please bare with me as I'm quite new to developing but have 'made' my first API and now need to get it working more securely.
Target:
To get my api to be accessed via www.MyWebsite.com/myAPI instead of mywebsiteapi:3000
I will throw some details down and be as succinct as possible and if someone could please point me in the right direciton it would be amazing.
- I have created an API running on Node JS
- I used "Visual Studio Code" and connected Via ssh.
- The main app runs on port 3000
- It is possible that my main app file is incorrectly named to use Application manager to do what I need (see below)
- I am running my own VPS with a company assisting in management.
- On NodeJS i am starting it and stopping it using the SSH terminal in VS Code.
- I am running "FOREVER" to keep the service running when terminal is closed and also to restart it if there are errors
- I have created an application in CPANEL application manager.
- The Base app URL is mywebsite.com.au/myapi
- The app path is /myAppPath
When I test this with Postman the port 3000 reference call will work, but when I try the /myapi call it doesnt work, there is no response, just a continued 'waiting for response'
Where do i look now to figure this out please because I want to get this working