Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you set the default website to serve when your IP address is entered as URL?

Tags:

apache

ip

I have a server with multiple websites hosted and distinguishable using name-based virtual hosting of apache.

How do I set it so that a specific website is hosted when the ip of my server is entered in the address bar?

like image 892
tread Avatar asked Sep 26 '13 09:09

tread


1 Answers

just find the Include sites-enabled/ line in your apache2.conf file and add the path to the conf file you want to be site default above it. from:

Include sites-enabled/

to

Include sites-enabled/mydefault.conf
Include sites-enabled/
like image 180
mouseware Avatar answered Oct 23 '22 01:10

mouseware