Mr. Underwood,
This is very easy to accomplish, with multiple paths with Apache (assuming you are using Apache/Httpd). I personally like virtual hosts as they make my life so easy. So for example, this will redirect from the HTTP subdomain to the HTTPS domain:
# More Info: https://httpd.apache.org/docs/2.2/vhosts/
<VirtualHost *:80> # Listen on HTTP ServerName observium. example.com # Force a redirect to HTTPS for any requests to observium. example.com RedirectPermanent / https://observium. example.com/ </VirtualHost>
<VirtualHost *:443> # Listen on HTTPS ServerName observium.example.com SSLEngine on DocumentRoot /opt/observium/html/ CustomLog /opt/observium/logs/access_log combined ErrorLog /opt/observium/logs/error_log <Directory "/opt/observium/html/"> AllowOverride All Options FollowSymLinks MultiViews </Directory> </VirtualHost>
Another great method is .htacccess (http://httpd.apache.org/docs/current/howto/htaccess.html).
Regards, Mark Lopez
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Zach Underwood Sent: Tuesday, January 7, 2014 1:35 PM To: Observium Network Observation System Subject: [Observium] ssl
I am trying to move my observium to ssl only. I have ssl working right now when I use https://observium.mydomain.net . I want to redirect people if they connect to from http to https.
OS=centos 6.5 version=4861