On Jun 2, 2012, at 12:58 PM, Jonathan Lundell wrote: > > On Jun 2, 2012, at 12:42 PM, Massimo Di Pierro wrote: >> Very strange. This seems more like an apache issue than a web2py. web2py >> simply does (in main.py): >> >> request.is_local = request.env.remote_addr in local_hosts >> >> where remote address is in the http request as passed by the web server. >> >> Could it be you have a visitor sharing the same virtual machine? > > I don't think so; it's a dedicate VPS and web2py is the only app running. > > I thought it might be some odd misconfiguration of static fetches (don't ask > me what), but they seem to be working fine. > > Hmm. I'm looking at the Apache access logs, and I see this every 10 minutes. > Looks like there's some local process querying the server for monitoring > purposes, a surprise to me. I'll check with Rackspace to see what it is. > > That suggests another workaround: I don't actually need the database for my > default controller, so I can make my table definitions dependent on the > controllers that need them. I'll report back if I find anything out.
Here's a clue: > 'http_user_agent': 'monit/5.2.5', monit is a monitoring agent. Now to find out how to shut it off gracefully. Either that or I can detect the user agent and feed it something harmless. > > localhost - - [02/Jun/2012:19:45:02 +0000] "GET /server-status?auto HTTP/1.1" > 200 242 > localhost - - [02/Jun/2012:19:45:03 +0000] "GET /server-status?auto HTTP/1.1" > 200 242 > localhost - - [02/Jun/2012:19:45:04 +0000] "GET /server-status?auto HTTP/1.1" > 200 241 > 127.0.0.1 - - [02/Jun/2012:19:45:06 +0000] "GET / HTTP/1.0" 200 6067 > 127.0.0.1 - - [02/Jun/2012:19:45:06 +0000] "GET /robots.txt HTTP/1.0" 200 46 > 127.0.0.1 - - [02/Jun/2012:19:45:06 +0000] "GET /watchup/static/favicon.ico > HTTP/1.0" 200 198 > 127.0.0.1 - - [02/Jun/2012:19:45:06 +0000] "GET > /watchup/static/js/modernizr.custom.js HTTP/1.0" 200 13677 > 127.0.0.1 - - [02/Jun/2012:19:45:06 +0000] "GET /watchup/static/js/jquery.js > HTTP/1.0" 200 93869 > 127.0.0.1 - - [02/Jun/2012:19:45:06 +0000] "GET > /watchup/static/css/calendar.css HTTP/1.0" 200 2941 > 127.0.0.1 - - [02/Jun/2012:19:45:06 +0000] "GET > /watchup/static/js/calendar.js HTTP/1.0" 200 45256 > 127.0.0.1 - - [02/Jun/2012:19:45:06 +0000] "GET /watchup/static/js/web2py.js > HTTP/1.0" 200 6305 > 127.0.0.1 - - [02/Jun/2012:19:45:06 +0000] "GET > /watchup/static/css/skeleton.css HTTP/1.0" 200 21946 > 127.0.0.1 - - [02/Jun/2012:19:45:06 +0000] "GET > /watchup/static/css/web2py.css HTTP/1.0" 200 10139 > 127.0.0.1 - - [02/Jun/2012:19:45:06 +0000] "GET > /watchup/static/css/superfish.css HTTP/1.0" 200 3627 > 127.0.0.1 - - [02/Jun/2012:19:45:06 +0000] "GET > /watchup/static/js/superfish.js HTTP/1.0" 200 8465 > 127.0.0.1 - - [02/Jun/2012:19:45:06 +0000] "GET > /watchup/static/images/poweredby.png HTTP/1.0" 200 4150 > 127.0.0.1 - - [02/Jun/2012:19:45:06 +0000] "GET > /watchup/static/images/arrows-ffffff.png HTTP/1.0" 200 244 > 127.0.0.1 - - [02/Jun/2012:19:45:06 +0000] "GET > /watchup/static/images/shadow.png HTTP/1.0" 200 1698

