If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!

I have web2py + lighttpd and trying to get the same app secure behind an url and open in you visit it from other domain. Is this possible? The idea is to get http://domain-one/app asking for password to be seen and http://domain-two/app not asking anything. The app is served by the same web2py instance and is if fact the same app, as I said. I tryed from lightttp but seems that mod_auth and mod_rewrite doesn't mix pretty well. There is any way to make this just using web2py?

Answers (1)

Comments (1)

  • Login to post



  • 0
    offray 7 years ago

    Hi is me again with a small advance. The variable I need to use here is "request.env.http_host" and I need to use it with the @auth.requires decorator. Once I have a more mature response I will keep you updated.

Related content


Hosting graciously provided by:
Python Anywhere