First time here? Check out the FAQ!

Revision history  [back]

HTTPS-only on Apache: Redirects to HTTP

I configured askbot on apache/wsgi with https only. When I enter the base url https: // in a browser, I get redirected to http: // This gets my a 404, because didn't (and don't want to) configure http.

My config:

 DocumentRoot /srv/askbotqa

 SSLEngine on
 SSLCertificateFile /etc/apache2/ssl/server.crt
 SSLCertificateKeyFile /etc/apache2/ssl/server.key

 Alias /admin/media/ /usr/local/lib/python2.6/site-packages/django/contrib/admin/media/
 WSGIScriptAlias /ask/ /srv/askbotqa/django.wsgi

 CustomLog /var/log/httpd/askbot/access_log common
 ErrorLog /var/log/httpd/askbot/error_log

How can I make it work with https only?