We have our intranet staff client set to use port 8443. I have turned off port 8080. We want to require connections to the staff client use HTTPS. How can get koha or apache to redirect HTTP connections on port 8443 to the equivalent HTTPS url? Joel Coehoorn Director of Information Technology 402.363.5603 *jcoehoorn@york.edu <jcoehoorn@york.edu>* The mission of York College is to transform lives through Christ-centered education and to equip students for lifelong service to God, family, and society
* Coehoorn, Joel (jcoehoorn@york.edu) wrote:
We have our intranet staff client set to use port 8443. I have turned off port 8080. We want to require connections to the staff client use HTTPS.
How can get koha or apache to redirect HTTP connections on port 8443 to the equivalent HTTPS url?
Hi Joel You don't do it in Koha, but you can do it in Apache. Easiest way is to have 2 virtual hosts, one listening on whatever port, and the other set up to do HTTPS In the first one, you simply redirect to the https one https://httpd.apache.org/docs/2.4/mod/mod_alias.html#redirect For example in your case it would be something like <VirtualHost *:8443> ServerName www.example.com Redirect "/" "https://www.example.com/" </VirtualHost > <VirtualHost *:443> ServerName www.example.com # ... SSL configuration goes here </VirtualHost > Hope this helps Chris -- Chris Cormack Catalyst IT Ltd. +64 4 803 2238 PO Box 11-053, Manners St, Wellington 6142, New Zealand
Greetings, [SNIP my less elegant solution using Rewrite rules http://httpd.apache.org/docs/current/rewrite/] I like Chris' solution better. Just to follow up with a reminder: make sure to set your StaffBaseURL and OPACBaseURL system preferences to match the proper protocols (versions 3.20.x and higher) GPML, Mark Tompsett -----Original Message----- From: Coehoorn, Joel Sent: Tuesday, January 26, 2016 2:55 PM To: koha@lists.katipo.co.nz Subject: [Koha] Redirect HTTP intranet to HTTPS We have our intranet staff client set to use port 8443. I have turned off port 8080. We want to require connections to the staff client use HTTPS. How can get koha or apache to redirect HTTP connections on port 8443 to the equivalent HTTPS url? Joel Coehoorn Director of Information Technology 402.363.5603 *jcoehoorn@york.edu <jcoehoorn@york.edu>* The mission of York College is to transform lives through Christ-centered education and to equip students for lifelong service to God, family, and society _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
participants (3)
-
Chris Cormack -
Coehoorn, Joel -
Mark Tompsett