Thanks men, I did this:
--------------------------
<VirtualHost *:80>
<Directory />
...
...
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</Directory>
...
</VirtualHost>
------------------------
Works ok to me. Now I must to test the "Require Auth".
Bye.
On 31 mayo, 13:33, Michael Scovetta <[email protected]>
wrote:
> I usually set up two virtual hosts, one listening on port 80 and the other
> on 443. The virtual host listening on port 80 just redirects to the other
> one:
>
> <VirtualHost 1.2.3.4:80>
> ServerAdmin [email protected]
> ServerName domain.com
>
> HostnameLookups Off
> UseCanonicalName On
> ServerSignature Off
>
> Redirect /https://domain.com/
> </VirtualHost>
>
> <VirtualHost *:443>
> SSLEngine on
>
> ServerAdmin [email protected]
> ServerName domain.com
>
> HostnameLookups Off
> UseCanonicalName On
> ServerSignature Off
>
> WSGIScriptAlias / /opt/apache/wsgi_start.py
> WSGIPassAuthorization On
> ...
> </VirtualHost>
>
> I haven't tried it, but would think that you could use mod_rewrite along
> with mod_wsgi, but it's possible that WSGI gets called first automagically.
>
> Hope this helps!
>
> Mike
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.