Re: apache 2.4 allow by IP

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

 



On Thu, 19 Mar 2015 16:26:28 -0400, you wrote:

>This is what I'm seeing in the error logs:
>
>[Thu Mar 19 13:22:34.274686 2015] [authz_core:error] [pid 56979:tid
>140005409228544] [client 216.178.108.232:63636] AH01630: client denied by
>server configuration: /opt/apache2/htdocs/hcphp.nbc.com/server-status
>
>But that error seems to be referencing another VHOST:
>
>
>#Mod_status config
>    ExtendedStatus on
><Location /server-status>
>    SetHandler server-status
>    Require ip 10.10.10.5
>    #Require all granted
></Location>
>
><VirtualHost *>
>    ServerAdmin     webmaster@xxxxxxxxxxxxx
>    DocumentRoot    /opt/apache2/htdocs/hcphp.nbc.com
>    ServerName      hcphp.nbc.com
>    ServerAlias     phphc.nbc.com 10.10.10.5  uszwsls00015la.dmz.tfayd.com
><Directory /*>
>        AddHandler cgi-script .cgi
>        Options -Indexes +FollowSymLinks +ExecCGI +Includes
>        AllowOverride All
>        Require all granted
></Directory>
>     RewriteEngine On
>     RewriteCond %{REQUEST_METHOD} ^TRACE
>     RewriteRule .* - [F]
>     ExpiresActive On
>     ExpiresDefault "access plus 30 minutes"
> </VirtualHost>
>
>I'm still not sure why this is happening. Any help/clues would be
>appreciated!
>
>Tim

The first virtual host is the default servername.
You could try to move the <Location ...> ... server-status ... </Location> 
block into that <VirtualHost ... ></VirtualHost> block.

-- 
Regards, Cordialement, Groet,

Kees Nuyt

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux