Ask Your Question

HTTPS-only on Apache: Redirects to HTTP

asked 2013-11-19 10:28:04 -0500

c_j_walesch's avatar

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-11-19 10:33:50 -0500

Evgeny's avatar

Maybe you don't have Listen 443 in the main configuration? Or redirect is handled by something before Apache has a chance to make a response? Have a look at the apache config file and the logs.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2013-11-19 10:28:04 -0500

Seen: 408 times

Last updated: Nov 19 '13