Hostname showing index of

3 posts / 0 new
Last post
#1 Sun, 10/09/2011 - 14:19
colinkent

Hostname showing index of

Hi

We have got Centos 6 installed with Virtualmin. We set the hostname in the install as testserver.com We can then goto https://www.testserver.com:10000 to get to virtualmin. This work ok but if you goto www.testserver.com you get Index of / Name Last modified Size Description

Is there a way to switch directory browsing off? If we wanted to put a webpage where is this pointing as there is no created servers?

Thanks Colin

Sun, 10/09/2011 - 17:01
andreychek

Howdy,

Anytime a domain's IP resolves to your server, but Apache isn't configured to host that domain -- Apache will show the default Virtual Server, which is the first domain configured in Apache.

Once you add a Virtual Server, you can set which one is the default by going into Server Configuration -> Website Options, and set Default Server for IP address.

-Eric

Mon, 10/10/2011 - 02:38
colinkent

Hi Eric

Ok thanks for the reply now I know what i need to do.

Thanks Colin

Topic locked