Report this

What is the reason for this report?

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

Posted on August 17, 2020

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 ?

Thanks



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.

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

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:

https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04

  • And for Apache you can follow this tutorial here:

https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-16-04

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.