Secure Your Ubuntu-based FreePBX with HTTPS Today!

Ok, I have install the Freepbx on my ubuntu server.

But it only open in http. I already got my ssl from but how to add it to my freepbx website?

I used Webmin to add a virtual server,, with port 443 in Apache2. However, upon attempting to access it, I encountered a familiar problem.

I checked the Apache log again and found the following error:

[rewrite:error] [pid 649171] [client] AH00670: Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is forbidden due to its similar ability to circumvent directory restrictions: /var/www/html/admin/

What was this issue? After some research, I finally found a solution.

You need to edit your file, located in /etc/apache2/sites-available/

The configuration should be updated as follows:


<VirtualHost *:443>
DocumentRoot “/var/www/html” RewriteEngine On ServerName
<Directory “/var/www/html”>
Options +FollowSymLinks
Require all granted
SSLEngine on SSLProtocol +TLSv1.2 +TLSv1.3 SSLCertificateFile
/etc/ssl/ SSLCertificateKeyFile
/etc/ssl/ SSLCACertificateFile


After I add “Options +FollowSymLinks” and  after adding these lines, the problem was solved. 🙂