Forum

Redirect default site to https

Stronghenge
22 January 2013, 21:19
Is there a way to direct all http traffic to https on the default site?

Hiawatha version: 8.7
Operating System: Ubuntu 12.04 LTS
Hugo Leisink
22 January 2013, 21:24
No. RequireSSL can only be used inside a VirtualHost section.
Stronghenge
22 January 2013, 22:59
I was hoping to gracefully force SSL even on the default site when people try to connect via non-SSL. Any thoughts?
Hugo Leisink
22 January 2013, 23:02
You should not use the default host for a website. Use your IP address as the hostname of the default host and give it a blank page. Web vulnerability scanners can websites by its IP address. Use a VirtualHost for your websites.
This topic has been closed.