![](https://secure.gravatar.com/avatar/3d0424b4006428e4b0ca7c7025135ab7.jpg?s=120&d=mm&r=g)
Assume you are running Apache? If so lots of instructions out there for enabling SSL there.
https://duckduckgo.com/?q=enable+ssl+apache
For observium, I have a redirect rule for anything on tcp/80 as follows that does the redirect for me in the apache conf file (see the bottom virtual host to see the redirect rule). I'm sure there's 20 other ways to do it but this is working for me
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! in /etc/apache2/sites-available/default !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
NameVirtualHost *:443
<IfModule mod_ssl.c> <VirtualHost *:443> ServerAdmin netadmin@mydomain.com DocumentRoot /opt/observium/html/ ServerName netobserver.mydomain.com CustomLog /opt/observium/logs/access_log combined ErrorLog /opt/observium/logs/error_log <Directory "/opt/observium/html/"> AllowOverride All Options FollowSymLinks MultiViews </Directory>
SSLEngine on SSLCertificateFile /etc/ssl/localcerts/apache.pem SSLCertificateKeyFile /etc/ssl/localcerts/apache.key
<FilesMatch ".(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> <Directory /usr/lib/cgi-bin> SSLOptions +StdEnvVars </Directory>
BrowserMatch "MSIE [2-6]" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
Alias /provision /var/www/provision <Directory /var/www/provision> Order allow,deny Allow from all </directory>
Alias /phpmyadmin /var/www/phpmyadmin <Directory /var/www/phpmyadmin> Order allow,deny Allow from all </Directory> </VirtualHost>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!This is where the redirect happens
<VirtualHost *:80>
ServerName netobserver.mydomain.com
<Location />
Order deny,allow
Deny from all
</Location>
RewriteEngine On
RewriteRule ^/?(.*) https://netobserver.mydomain.com/$1 [R=301,L]
</VirtualHost>
Hope this helps, Kenny
On Tue, Jan 7, 2014 at 12:34 PM, Zach Underwood zunder1990@gmail.comwrote:
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
-- Zach Underwood (RHCE,RHCSA,RHCT,UACA) My website http://zachunderwood.me My photos http://zunder1990.openphoto.me
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium