Hello,
I am having a similar problem with a Django application running at Amazon
EC2 (I also posted a question at Stack Overflow
<http://stackoverflow.com/questions/24664082/missing-http-authorization-at-amazon-ec2-django-instance>
).
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.