Also, note that Nginx + uWSGI is currently recommended over Apache + mod_wsgi for production deployment.
Anthony On Tuesday, May 10, 2016 at 7:54:23 AM UTC-4, Anthony wrote: > > web2py URLs are not served in the same way you would serve static files. > You must configure your web server properly to run a Python WSGI > application. For Apache, the recommended method is to use mod_wsgi -- see > the documentation: > http://web2py.com/books/default/chapter/29/13/deployment-recipes#Apache-setup > . > > When you have it set up properly, you will not have URLs that start with > /~user/web2py. Rather, your URLs will look like > /appname/controller/function (if you leave all of those off, you will get > /welcome/default/index as a default). > > Anthony > > On Tuesday, May 10, 2016 at 6:38:42 AM UTC-4, Laer Cius wrote: >> >> Hi, >> >> I know this is going to be a bit vague but I have a web2py folder in my >> home : /home/user/web2py which I can reach in my browser at >> 127.0.0.1:8080 and that I now try to access through public_html. >> >> Then I copied all files into public_html, made apache and file system >> modifications (selinux, rights, firewall) but I only get an "invalid >> request" answer at http://192.168.0.10/~user/web2py. It does not seem to >> be an apache misconfiguration as I have no error in apache logs and I can >> even get my "invalid request" from another computer on my local network at >> the same address. >> >> I guess it comes from a web2py misconfiguration but I don't know what or >> where to look at first or even second. I tried to rebuild all databases but >> it stops even before it can get to model files. And the tricky part is that >> I don't have any error ticket. >> >> So my simple question would be : where and for what I should look for ? >> Any idea is welcomed, I'm kind of dry at the time.. >> >> Thank you, >> >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

