[web2py] Re: web2py apache2 setup with htaccess authorization

2013-02-18 Thread Chr_M
Ah, thanks for the link and the example. I see some clues there. Regards, Chris On Monday, February 18, 2013 12:40:34 AM UTC+1, Massimo Di Pierro wrote: > > Perhaps this can help? > http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives > > Anyway you can mimic it with web2py. In a model a

[web2py] Re: web2py apache2 setup with htaccess authorization

2013-02-17 Thread Massimo Di Pierro
Perhaps this can help? http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives Anyway you can mimic it with web2py. In a model add: if not session.authorized: if request.post_vars.password == '123456': session.authorized = True else: raise HTTP(200,HTML(BODY(FORM('Password:',INPU

[web2py] Re: web2py apache2 setup with htaccess authorization

2013-02-17 Thread Chr_M
I understand it is a primitive system, but also a quick way to put a website behind a login. I do not want to integrate an authentication system, because it is only for some betatesters before the website goes live. On Sunday, February 17, 2013 4:25:16 PM UTC+1, Massimo Di Pierro wrote: > > Why

[web2py] Re: web2py apache2 setup with htaccess authorization

2013-02-17 Thread Massimo Di Pierro
Why do you want to use htaccess instead of web2py own authentication. htaccess is such a primitive system. On Sunday, 17 February 2013 06:26:09 UTC-6, Chr_M wrote: > > I come from a PHP background and when I wanted to have a website (or a > part) behind a login screen (for example for beta tes