Report this

What is the reason for this report?

Multiple Domain, but how manage IP access?

Posted on October 23, 2018

I succeed create multiple domain in droplet from this tutrials : https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-16-04

When i access my ip droplet from browser, it access one of domain i created, but not what i want, But how to manage to load domain i want, when i access my ip from my browser?

Sorry for my bad English, i hope u understand, I have no experience in server, use a lot tutorials from this community,



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.

you can :

  1. Edit 000-default.conf, in document root change it to document root of the domain you want.
  2. Rename your virtualhost configuration file of domain you want to be default with 0000-test.conf

When you visit the IP, Apache shows you the domain that’s in the first virtual host in httpd.conf. So if you want to view a particular domain via IP, move its virtual host up top so it’s first in the list.

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.