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

Re: Default virtualhost on Debian Jessie with Apache 2.4.10

Hi, Bob.

On 01/05/15 17:30, Bob Proulx wrote:

>> 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?

> By default apache2 will install with this:
>   lrwxrwxrwx 1 root root 35 May  1 14:22 000-default.conf -> ../sites-available/000-default.conf
> Of course that file has:
>   <VirtualHost *:80>
>         DocumentRoot /var/www/html
> And with this in /etc/apache2/ports.conf:
>   Listen 80
> Removing that default configuration will remove apache from listening
> on port 80 leaving only your configuration listening on port 443.

Yes, I've seen it. But it is currently disabled:

root@mail:/etc/apache2/sites-enabled# ll
total 0
lrwxrwxrwx 1 root root 44 abr 29 16:45 webmail.freesoftware.conf ->

So I do not explain to me why when accessing the IP of server (for
example) it is shown the "It's works" site. I have purged the content in
the browser cache (just in case) and even opened a different browser to
test it, but the result is the same.

It is strange because these days I upgraded other hosts with Apache to
Debian Jessie and I have not had this problem.

I will continue investigating.

Thanks for your reply.

Best regards,

Reply to: