[web2py] Re: Suggestion to add more mod_wsgi info to help new users -- WSGIPassAuthorization for instance

2012-06-28 Thread Larry Weinberg
Great!  Thanks Massimo.  I'm sure that will save some others some time!

[web2py] Re: Suggestion to add more mod_wsgi info to help new users -- WSGIPassAuthorization for instance

2012-06-28 Thread Massimo Di Pierro
Thank you. I updated setup-web2py-ubuntu.sh and setup-web2py-fedora.sh

On Wednesday, 27 June 2012 20:47:34 UTC-5, Larry Weinberg wrote:
>
> In order to have the web2py examples work out of the box on Apache with 
> mod_wsgi, an extra directive is needed in the Apache configuration for the 
> VirtualHost (or directory, or .htaccess)
>
> WSGIPassAuthorization On
>
> This allows basic authentication to proceed through. 
>
> It looks like there are some good reasons why mod_wsgi in apache strips 
> authorization by default:
> The link to the info is: 
> http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIPassAuthorization
>
>
>
>
>
>

[web2py] Re: Suggestion to add more mod_wsgi info to help new users -- WSGIPassAuthorization for instance

2012-06-27 Thread Larry Weinberg
In order to have the web2py examples work out of the box on Apache with 
mod_wsgi, an extra directive is needed in the Apache configuration for the 
VirtualHost

WSGIPassAuthorization On

This allows basic authentication to proceed through. 

It looks like there are some good reasons why mod_wsgi in apache strips 
authorization by default:
The link to the info is: 
http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIPassAuthorization





[web2py] Re: Suggestion to add more mod_wsgi info to help new users -- WSGIPassAuthorization for instance

2012-06-27 Thread Massimo Di Pierro
Please. Tell us more.

On Wednesday, 27 June 2012 16:41:39 UTC-5, Larry Weinberg wrote:
>
> I'm a newbie to apache configuration, so I just spent hours trying to 
> determine why none of the REST-api-with-authentication web2py examples 
> were working for me. All worked fine without authentication.
>
> It turns out the apache server with mod_wsgi strips the authorization out 
> by default.
> A one line sentence about this in the web2py manual would have left me 
> with more hair!
>
> Thanks for listening.
>