Skip to content
Barry O'Donovan edited this page Apr 19, 2014 · 2 revisions

Generally speaking, SSL support has nothing to do with ViMbAdmin and everything to do with your web browser.

SSL just works on Apache. If the request comes in via a URL beginning https:// then all URLs are created likewise. Apache just needs a redirect on non-SSL requests such as:

RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^/(.*)$ https://www.example.com/$1 [L,R]

This is all handled by the OSS Framework library here.

You'll note here that it keys off $_SERVER['HTTP_HOST'] - so I'm not sure how this translates to nginx or other web servers.

We have feedback that it does work on nginx using an alternate option to the above dynamic just works on Apache. This option is to set the host option in the application/configs/application.ini file such as:

utils.genurl.host_mode = 'REPLACE'
utils.genurl.host_replace = 'https://www.example.com'

with the following nginx config:

if ($scheme = http) {
    return 301 https://$server_name$request_uri;
}

See issue #77 for reference.