Two Application on same droplet one in Main and other in Subdomain

Hi I am not from Web development background . I am planing to run an Online testing on main domain and a discussion community on subdomain. I have already a Community running in a droplet and Subdomain. Can I run an online exam on same droplet but on main domain ?


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.

Hi there @vupeshmohanty,

Yes indeed this is doable. What you could do is to set up virtual hosts if you are using Apache or if you are using Nginx you can set up server blocks. That way you can have multiple websites hosted on the same Droplet.

Depending on what webserver you are using you can follow the steps here:

  • For Nginx, you can follow this guide here:

  • And for Apache you can follow this tutorial here:

Let me know if you have any questions! Regards, Bobby

Thanks a lot for the reply :) Let me try .