How to setup multiple sites on one droplet with Laravel Forge?

I already have a digital droplet created and using it on another site. I am using laravel forge.

I would like to add another site to the same droplet. Now I added the hostname the .com and www .com version to the droplet. However, when I visit the site ‘server IP could not be found’.

When creating the project, in digital ocean asks me if I would like to move the resource(droplet) over from the previous site to this new one. But if I do that would that would it affect the other site?

If anyone could provide some guidance that would be greatly appreciated.

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

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.

Are you adding a new website/webapp?

Not sure how Forge handles this, but the normal procedure is to add a new virtual host if you are using Apache. (/etc/apache/sites-available)

Don’t have to mess with the droplet.

thanks @VIMaster that issue is now resolved. I created the file as you mentioned. Still getting the 404 though. I reached out to support hoping they can provide more insight. Everything I’ve checked so far seems to be functioning correctly.