[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Default virtualhost on Debian Jessie with Apache 2.4.10



On 04/30/2015 10:23 PM, Daniel Bareiro wrote:
> Hi all!
> 
> Currently I have a unique site in sites-enabled which is accessed only
> via HTTPS. Hoping to have an access error when trying to access this
> site via HTTP, Apache sends me to the default site which is "It's
> works!" page in /var/www/html.
> 
> I was looking in the Apache configuration files where is configured the
> default site but I have not found it. This was set at low level in the
> compilation of the service?
> 

Hi,

all your configuration files in /etc/apache2/sites-enabled/
 and /etc/apache2/sites-available/ should end with ".conf" string e.g.
"mysite.com.conf".

For default site you can use "_default_" key word, see
http://httpd.apache.org/docs/2.4/vhosts/examples.html.

HTH

Kind regards
Georgi


Reply to: