anvc / scalar

Born-digital, open source, media-rich scholarly publishing that’s as easy as blogging.
Other
231 stars 73 forks source link

scalar SSL settings #55

Closed pguerr061703 closed 7 years ago

pguerr061703 commented 7 years ago

Hi. I am hosting scalar on a Ubuntu virtual host to support some faculty members for the university I work for. What settings can I change to get scalar to support SSL (https://scalar.domainname>) What config files (if any) do I need to look at modifying?

Our Netscalar (router) supports HTTP--> HTTPS redirect. Will the scalar application config require any modifications ?

Thanks for any assistance. Patrick

craigdietrich commented 7 years ago

Sorry for the late reply here.

Scalar supports https out of the box, and you need to do is route your requests to https (instead of http) and Scalar will adjust. (You can take a look at the top of system/application/config/config.php to see where this occurs.)

There's a template in the .htaccess file in Scalar's root folder for moving all http requests to https. It's not all that involved.

I should note that Scalar won't behave well under https if you're using 3rd party plugins regularly. Since many of them are made at universities and aren't too mindful of SSL, they don't run their plugins under https, so Scalar can't embed them if it's running under https and the plugin isn't. So, lots of problems could occur.

Keep us posted?