Is there any reason why you run mod_wsgi? When I run WSGI apps, I
typically use nginx frontend with bjoern WSGI server. It's much
simpler to set up, and also very reliable combo.

Bjoern server is started from within your app (just like the built-in
cherrypy sever) with just this one line:

bjoern.run(wsgi_application, host, port)

You typically start it on 127.0.0.1:XXX and then reverse-proxy nginx
to that address so that requests from users go through nginx. You also
let nginx serve statics at the same time, and nginx is very good at
statics, so it's a very good combo.

On Thu, May 12, 2011 at 4:07 PM, Andre Smit <[email protected]> wrote:
> I notice the following in my Apache logs. The app appears to work OK so not
> sure what it's complaining about :) Any ideas?
>
> I'm using mod_wsgi.
>
> [Thu May 12 08:58:38 2011] [error] [client 146.6.92.109] Traceback (most
> recent call last):
> [Thu May 12 08:58:38 2011] [error] [client 146.6.92.109]   File
> "c:\\python26\\lib\\site-packages\\web.py-0.34-py2.6.egg\\web\\application.py",
> line 242, in process
> [Thu May 12 08:58:38 2011] [error] [client 146.6.92.109]     return
> self.handle()
> [Thu May 12 08:58:38 2011] [error] [client 146.6.92.109]   File
> "c:\\python26\\lib\\site-packages\\web.py-0.34-py2.6.egg\\web\\application.py",
> line 233, in handle
> [Thu May 12 08:58:38 2011] [error] [client 146.6.92.109]     return
> self._delegate(fn, self.fvars, args)
> [Thu May 12 08:58:38 2011] [error] [client 146.6.92.109]   File
> "c:\\python26\\lib\\site-packages\\web.py-0.34-py2.6.egg\\web\\application.py",
> line 411, in _delegate
> [Thu May 12 08:58:38 2011] [error] [client 146.6.92.109]     mod =
> __import__(mod, globals(), locals(), [""])
> [Thu May 12 08:58:38 2011] [error] [client 146.6.92.109] ImportError: Import
> by filename is not supported.
> [Thu May 12 08:58:38 2011] [error] [client 146.6.92.109]
>
> --
> You received this message because you are subscribed to the Google Groups
> "web.py" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/webpy?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to