I tried that but it did not seem to affect the behavior at all.

But... I remembered I had disabled the "default" site. I re-enabled 
default, and now the problem has gone away.

Perhaps I need some piece of the default configuration? There is no mention 
of this location in the default configuration, so I'm a bit puzzled.

Thanks.

On Saturday, April 6, 2013 7:12:42 PM UTC-5, Graham Dumpleton wrote:
>
> Try duplicating the Location directive block for server-status inside of 
> the VirtualHost.
>
> Graham
>
>
> On 7 April 2013 09:23, Brian Neal <[email protected] <javascript:>> wrote:
>
>> Hi -
>>
>> I setup Apache to serve a couple of static HTML sites. I also installed 
>> munin to do server monitoring. So far all is well.
>>
>> I then installed my first Python/Django site using mod_wsgi. Suddenly my 
>> munin stats for Apache accesses and Apache volume stop updating.
>>
>> In the error log for my mod_wsgi app I see this repeated every 5 minutes 
>> (which is I believe how often munin is running:)
>>
>> [Sat Apr 06 18:00:08 2013] [error] [client X.X.X.X] client denied by 
>> server configuration: /some/path/*****/apache/bns.wsgi
>>
>> Note that the IP address X.X.X.X is my boxes external IP address.
>>
>> In the access log I see these every 5 minutes:
>>
>> 127.0.0.1 - - [06/Apr/2013:18:10:03 -0500] "GET /server-status?auto 
>> HTTP/1.1" 301 499 "-" "libwww-perl/6.03"
>> X.X.X.X - - [06/Apr/2013:18:10:03 -0500] "GET /server-status?auto 
>> HTTP/1.1" 403 402 "-" "libwww-perl/6.03"
>> 127.0.0.1 - - [06/Apr/2013:18:10:04 -0500] "GET /server-status?auto 
>> HTTP/1.1" 301 499 "-" "libwww-perl/6.03"
>> X.X.X.X - - [06/Apr/2013:18:10:04 -0500] "GET /server-status?auto 
>> HTTP/1.1" 403 402 "-" "libwww-perl/6.03"
>> 127.0.0.1 - - [06/Apr/2013:18:10:05 -0500] "GET / HTTP/1.1" 301 500 "-" 
>> "Wget/1.13.4 (linux-gnu)"
>> X.X.X.X - - [06/Apr/2013:18:10:05 -0500] "GET / HTTP/1.1" 200 12335 "-" 
>> "Wget/1.13.4 (linux-gnu)"
>>
>> If I disable my mod_wsgi site the stats start updating again and these 
>> log messages do not appear.
>>
>> I do have mod_status enabled, and the stock conf file (Ubuntu 12.04) for 
>> it contains this stanza (which is not inside any virtual host container):
>>
>> <Location /server-status>
>>     SetHandler server-status
>>     Order deny,allow
>>     Deny from all
>>     Allow from 127.0.0.1 ::1
>> #    Allow from 192.0.2.0/24
>> </Location>
>>
>> It would appear my mod_wsgi app is somehow intercepting this or 
>> overriding it? 
>>
>> My Apache configuration for the Django site looks like this:
>>
>> <VirtualHost *:80>
>>    ServerName example.com
>>    ServerAlias www.example.com
>>    UseCanonicalName Off
>>    ServerAdmin [email protected] <javascript:>
>>    
>>    DocumentRoot /some/path/www/example.com/public
>>    LogLevel warn
>>    ErrorLog /some/path/www/example.com/log/error.log
>>    CustomLog /some/path/www/example.com/log/access.log combined
>>
>>    <IfModule mod_rewrite.c>
>>    RewriteEngine on
>>    RewriteCond %{HTTP_HOST} !^example\.com$ [NC]
>>    RewriteCond %{HTTP_HOST} !^$
>>    RewriteRule ^/?(.*)$ http://example.com/$1 [L,R=301,NE]
>>    </IfModule>
>>
>>    <Directory /some/path/www/example.com/public>
>>       Options -Indexes +FollowSymLinks -MultiViews
>>       AllowOverride None
>>       Order allow,deny
>>       allow from all
>>    </Directory>
>>
>>    ServerSignature Off
>>
>>    WSGIDaemonProcess bns.com threads=5 user=brian group=brian 
>> display-name=%{GROUP}
>>    WSGIProcessGroup bns.com
>>
>>    Alias /media/ /some/path/django-sites/bns/media/
>>    Alias /static/ /some/path/django-sites/bns/static/
>>    Alias /favicon.ico 
>> /some/path/django-sites/bns/static/images/favicon.ico
>>    Alias /robots.txt /some/path/django-sites/bns/static/robots.txt
>>
>>    WSGIScriptAlias / /some/path/django-sites/bns/
>> example.com/bns_website/apache/bns.wsgi
>>
>>    <Directory /some/path/django-sites/bns/example.com/bns_website/apache>
>>       Order deny,allow
>>       Allow from all
>>    </Directory>
>> </VirtualHost>
>>
>> Thanks for any hints on this.
>>
>> Regards,
>> BN
>>
>>
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "modwsgi" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/modwsgi?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to