Route server IP to a specific folder.


I am currently running two websites on a vserver. As an example: (/home/alpha/htdir) & (/home/beta/htdir)

My server IP is

Now, when someones accesses my IP he is redirected to /home/alpha/htdir which belongs to

But I’d like the server ip to redirect to /home/alpha/htdir/index.html which will be a blank page. In short I don’t want the IP to route to any specific site.

Is there a way to do this via virtualmin? Or would I have to edit the apache web config?

Best regards,



Whenever Apache receives a request a for a domain or IP address that it isn’t configured to handle, it will deliver he “Default” website.

That’s what you’re running into now – it sounds like the “alpha” website is the default, and Apache is sending it when someone connects to your server via the IP address.

What you may want to do is setup a new Virtual Server to act as the “Default”.

And then, you can configure which Virtual Server is the default by going into Server Configuration -> Website Options, and setting “Default website for IP address” to “Yes” for that particular domain.

Then, when connecting to your server by IP address, that website is what folks will see.


Thanks a bunch mate! That helped!