How to add a next.js subdomain

I have a server with multiple directories under /var/www/html I access them via Apache. Basically you type: mydomain.com/app1 And then the index.html under var/www/html/app1 gets loaded Everything so far is working great. But now I wanted to add next.js With an appnext under var/www/html/appnext But next.js does not have an index.html. So if I use it dynamically, which I have to do, because I do a lot of database requests that change the data on the site, it finds no index.html and does not work. So I can only access the site via mydomain.com:3000. That is very ugly. I tried to add a Vhost but it did not work. I tried to add a ProxyPass but that did not work. Is there a better way? Or a good tutorial on how to do this? https://dev.to/digitalpollution/your-nextjs-app-your-environment-a-guide-to-deployment-10l This one did not help, and others like it did not help either.
DEV Community
Your Next.js App, Your Environment: A Guide to Deployment
Greetings, fellow developers! In this guide, we'll explore the exciting journey of deploying your...
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server