I use hostinger + hestiaCP
I have VPS hosting on Ubuntu 22.04 64bit with HestiaCP
I see this guide
This website don’t let me to paste more than 2 links - so in YouTube enter
How to Deploy a Next.js app to a Custom Server - NOT Vercel! (Full Beginner Tutorial)
I want to see my website that I created wtih next.js
I already configured nginx
/etc/nginx/sites-available/nextjs.conf
When I visit IP address I see “Your new web server is ready to use” instead of my website
For now I just expect that after pnpm build and pnpm start will see my actuall website instead of “Your new web server is ready to use” message
If you know how to fix it you may help me in google-meets or discord (so it will faster) - just message me in telegram - nicitaacom
Also I’m expecting that you message me some basic stuff I need to run in my terminal to see my website intead of “Your new web server is ready to use” message
Depending on your setup you need to create nextjs.tpl and nexjs.stpl in nginx folder (Nginx + Apache2) or nginx/php-fpm folder (Nginx stand alone folder)
Create a copy of default.tpl and .stpl and make your changes
The go to edit web and alter the template for that domain and it should work out of the box
I figure out it
In this guide I show not only how to fix “Your new web server is ready to use” message (it common if you use some control panel - so you may not change nginix config for that reason)
But also I show how to deploy 2 next.js projects on 1 VPS and send and recieve emails from your own domain (with hesiaCP its not possible - I tried it and redirection to recieve emails doesn’t work)