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

Re: Default virtualhost on Debian Jessie with Apache 2.4.10



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/05/15 14:22, Marco Stoecker wrote:

> Hi Bob

Hi, Bob and Marco.

Bob, I appreciate your interest and time spent in testing.

> thanks for your help. I did it the other way. Just installed wheezy
> on a 2nd machine, installed apache2, disabled the default site and
> still, if I call http://192.168.10.16, it shows the default site.
> So I was wrong, saying wheezy did different. But is where can I
> disable the default completely (I guess somewhere to change the
> DocumentRoot in the main config)?

I also tested on a new installation with Wheezy in a LXC container and
the behavior was the same as in Jessie. I would have underwritten that
some time it was different. Sorry for the confusion.

Under these circumstances, I believe that the only alternative would
be to use _default_ in the VirtualHost directive. Maybe something like
this?

<VirtualHost _default_:80>
        RedirectMatch 404 (.*)
</VirtualHost>

<VirtualHost _default_:443>
        RedirectMatch 404 (.*)
</VirtualHost>



Best regards,
Daniel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlVOAjsACgkQZpa/GxTmHTddFgCeMdyVDgxV79fs5QNvtbIFaKgR
Pk8AniVS0DyGwDLzwLVJ6ccxuFSaK/Cu
=8Kk/
-----END PGP SIGNATURE-----


Reply to: