[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 08/05/15 16:54, Bob Proulx wrote:

> Daniel Bareiro submitted the problem that he could not disable the
> default web server on port 80.  That has been the topic of this
> thread.
> I see now that you did say you wanted to have the mailman site
> enabled.  I didn't see that before since we were focused on Daniel's
> problem of trying to disable the port 80 web site.

My original question was aimed at preventing that Apache gives a default
response if the site name does not match exactly (regardless of the
ports that were enabled).

Given the circumstances, I think the way to do this would be using
_default_ in the definition of VirtualHost. I think the definitions
mentioned in a previous mail could be consolidated as follows:

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

Although it might be interesting to achieve a similar behavior to the
444 of Nginx mentioned in a previous email.

Best regards,

Attachment: signature.asc
Description: OpenPGP digital signature

Reply to: