Bug 43609 - OX EAS doesn't work with apache2/force_https
OX EAS doesn't work with apache2/force_https
Status: RESOLVED DUPLICATE of bug 43603
Product: UCS
Classification: Unclassified
Component: Apache
UCS 4.1
Other Mac OS X 10.1
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-02-22 13:43 CET by Thomas Siedentopf
Modified: 2017-02-22 13:49 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Siedentopf 2017-02-22 13:43:16 CET
OX EAS (Microsoft Enterprise Active Sync) does not work when apache2/force_https is enabled. Reason is that OX USM (Universal Synchronization Module - framework that is used by OX EAS) connects to the frontend Apache (com.openexchange.usm.ox.url=http://localhost/ajax -> see /opt/open-xchange/etc/usm.properties) but will also be forced to use https (because localhost is not excluded from the Apache Redirect) which will then fail.

Oxtender2 for MS Outlook most probably will also fail (because it also relies on USM).

A possible fix will be to add localhost from also beeing excluded from the redirect in /etc/apache2/mods-enabled/ssl.conf:

RewriteEngine on
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !=/server-status
+RewriteCond %{HTTP_HOST} !=localhost
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R=301,L]
Comment 1 Florian Best univentionstaff 2017-02-22 13:49:07 CET

*** This bug has been marked as a duplicate of bug 43603 ***