Support > How To's

[Solved] Adding SSL to Feng Office

(1/2) > >>

brendonhatcher:
Hi

I want to start putting sensitive data on a client's Feng Office installation.
I decided to use SSL to protect the data stream.

This is what I did:

1. Moved the hosting account to a dedicated IP on my VPS

2. In WHM, generated and installed a self-signed certificate

3. Edited the 'ROOT_URL' variable in /config/config.php

Changed: define('ROOT_URL', 'http://domain.com');
To: Changed: define('ROOT_URL', 'https://domain.com');

4. Added a redirect in .htaccess to prevent "accidental" browsing to the unsecured url

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://domain.com/$1 [R,L]

System appears to be working OK.

The first visit triggers  security warning due to the self-signed nature of the SSL certificate, but the site is only used internally, so this won't be an issue.

Does anyone have any comments on this approach?
Anyone else done the same?

If no-one posts any issues, and I don't find any, we can add this to the Wiki.

I'll post a confirmation that everything is working in a few days.

--Update--

It appears that the cron job for mail and notification processing stops working.
I changed the cron entry using details on the wiki to:

include - -no-check-certificate
change http:// to https://

Regards
Brendon

cabeza:
Good idea to add it to the wiki. Go ahead!

sam123:
There seems to be a problem in this approach. I just installed SSL certificate to projects.clinlead.com and  there seem to be elements ( Images?) that are not pulled securely. So the certificate is not able to verify that the connection is totally secure. How can we make all the images pull securely is the question? Any help I can get will be highly appreciated.
Thanks
Sam

sam123:
The issue seems top be mainly with IE8 which throws a warning about nonsecure content. Any way to resolve this ? This is frustrating.

sam123:
Hello brendonhatcher
Please explain the solution for cron job a little in detail. I am stuck with this one actually. That will be very kind of you.
Kind regards and a merry christmas!
Sam

Navigation

[0] Message Index

[#] Next page

Go to full version