Node js application at root path
I have been trying to deploy a node js application following the method provided
const server = http.createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hello World! NodeJS \n');
});
Which is where the problem now lies, why do I get a redirect to /cgi-sys/defaultwebpage.cgi when only using "
Which is where the problem now lies, why do I get a redirect to /cgi-sys/defaultwebpage.cgi when only using "
-
I would like to serve my node js application at the root path of my main domain. Is this possible at the moment?
Hello @imowayushka, You can enter a single slash (/) for the Application URL field when registering an application in cPanel >> Application Manager. If this isn't working (or the application isn't loading in your web browser), please share the full reproduction steps to help us reproduce the issue internally. Thank you.0 -
I got the same error and didn't found any option to solve it. Please help. 0
Please sign in to leave a comment.
Comments
2 comments