Disable default site shown via IP or hostname access

3 posts / 0 new
Last post
#1 Thu, 01/15/2015 - 07:24
simber

Disable default site shown via IP or hostname access

I installed a first site on my server, but it turns out it's not only accessible via it's own domain name, but also via the domain name and ip address of the server.. How can I disable this behavior?

thanks

Thu, 01/15/2015 - 09:59
andreychek

Howdy,

Any IP address or domain name that isn't configured in Apache, will be given the default website if someone accesses it in a browser.

The first site on your server is likely currently set as the default.

My suggestion would be to setup another site as the default.

To do that, you can go into Server Configuration -> Website Options, and set "Default website for IP address" to "Yes".

-Eric

Sun, 07/21/2019 - 01:57
kurtobando
kurtobando's picture

Server Configuration -> Website Options, and set "Default website for IP address" to "Yes".

Yes, working as expected.

Topic locked