I have a general question about nginx
Let say you don’t have a domain first, but you already fired up your droplets. You already success setup Nginx in your droplet.
But your plan is to host 2 website in the droplet So the first website is done, assuming the default nginx page is the first website.
Now, how can i host the second website? Remember for now i still dont have the domains. What to put in the nginx configuration (server_name) for the second website?
For the first website, i already use “server_name localhost;”
What sould i put for the second website?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!