Rewrite from HTTP to HTTPS not working for web staff client with Apache 2.4
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Medium
|
Unassigned | ||
2.12 |
Fix Released
|
Medium
|
Unassigned | ||
3.0 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Evergreen versions: 2.12.8 and 3.0.3
OpenSRF versions: Irrelevant
PostgreSQL version: Irrelevant
Apache version: 2.4+
If you install the web staff client on a server with Apache 2.4 and attempt to access it as http://
If you do the same with Apache 2.2 on the host, the redirect works.
Apparently the order of directive evaluation changed from Apache 2.2 to Apache 2.4. It looks like the SSLRequireSSL directive is being evaluated before any Rewrite* rules.
Removing the SSLRequireSSL form the /eg/staff location stanza in eg_vhost.conf.in allows the RewriteRule to take effect on Apache 2.4.
I will submit a branch to correct this in the example config shortly.
description: | updated |
Changed in evergreen: | |
milestone: | none → 3.1-beta |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
I pushed the branch to user/dyrcona/ lp1748466- webstaff- htps-apache- 24 in the working repo:
http:// git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ dyrcona/ lp1748466- webstaff- htps-apache- 24