Can I use my Primary Domain in cPanel to point to Next.js app?
I operate an Apache server running Alma Linux, equipped with cPanel/WHM, hosting multiple websites on various subdomains. I aim to use my primary domain with my Next.js application, which is already developed and deployed on port 3000 of the server.
What steps can I take? can I achieve this through cPanel? or will I have to use some other method?
-
Hey there! Node.JS isn't something that is supported by cPanel, but we do make the tools available. Details on configuring your server to support the application are here:
and details on setting up an application that is compatible with cPanel can be found here:
https://docs.cpanel.net/knowledge-base/web-services/how-to-install-a-node.js-application/
0 -
Thank you for the quick response. I was actually able to get this working by using a reverse-proxy configuration on apache. But I have more issues, that I will address in a separate thread.
0 -
Hello,
Thank you for the update. Glad you were able to get that working.0
Please sign in to leave a comment.
Comments
3 comments