What exactly are you trying to do?

Especially, why do you have the following?

        RewriteEngine on
        RewriteCond %{HTTP:Authorization} ^(.*)
        RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]

And where does the password checking even occur and with which authentication 
scheme?

Right now you have nothing in the Apache configuration such that it is doing 
authentication management.

Are you doing authentication in your Django application?

Usually people use form based login with Django and not HTTP authentication, 
and WSGIPassAuthorization has got nothing to do with Django form based 
authentication.

Graham

On 29/07/2014, at 5:40 AM, Joao Paulo Fernandes Ventura 
<[email protected]> wrote:

> Hello,
> 
> I am having a similar problem with a Django application running at Amazon EC2 
> (I also posted a question at Stack Overflow).
> 
> First I would like to know which of the following files should contain the 
> rewrite rule option:
> site-full.conf
> site-simple.conf
> vhosts.conf
> httpd.conf
> And second, if this is the correct manner of declare the rewrite rule on 
> site-full.conf and site-simple.conf:
> 
>     WSGIScriptAlias / /home/sfw/%(namespace)s/appengine/wsgi.py
>     WSGIPassAuthorization On
> 
>     <Directory "/home/sfw/%(namespace)s/">
>         AllowOverride All
>         Require all granted
> 
>         RewriteEngine on        RewriteCond %{HTTP:Authorization} ^(.*)
>         RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
> 
>         <Files wsgi.py>
>             SetEnvIfNoCase Host %(full_host_regex)s|%(naked_host_regex)s 
> VALID_HOST
>             Order Deny,Allow
>             Deny from All
>             Allow from env=VALID_HOST
>         </Files>
>     </Directory>
> 
> Thank you a lot for your help :-)
>  
> On Wednesday, December 23, 2009 8:27:49 AM UTC-2, Jumpfroggy wrote:
> Yeah, just a big miss on my part.  Everything's working now, thanks
> for the tips.  Definitely got me going in the right direction.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to