SME 7.4, zaptel-1.4.11, asterisk-1.4.22.2, sail-2.2.1-759
Selintra -
Although you recommend the SAIL/SME Server be run just as a telephony platform, I recently started installing contribs and enabling functions and services primarily to demonstrate the Server capabilities to potential users.
Unfortunately a pattern of problems emerged - basically any app outside of the server-manager or horde interface that required https access would run into recursive redirect failures. I tested this with IE and Firefox. Port 80 http access was not a problem.
I had to remove the following lines from your 27ManagerProxyPass in the if($port eq "443") routine:
$OUT .= " RewriteCond %{REQUEST_URI} ^/(.*)\n";
$OUT .= " RewriteRule .* %{HTTP_REFERER}%1 [L,R]\n";
$OUT .= " RewriteRule .* %{HTTP_REFERER}/%1 [L,R]\n\n";
and then expand-template /etc/httpd/conf/httpd.conf and /etc/init.d/http-e-smith restart solved the problems.
A simple proof-of-concept is to build an index.html file in the Primary ibay that contains an image or some other reference and access it through https. Another example is to install the Webshare contrib - its small, simple, requires https access but doesn't need a signal-event post-upgrade; signal-event reboot after the yum install.
I have found no asterisk related issues from removing that code but didn't have a lot of time to test further... is there some specific dependency in the SAIL programming that requires the HTTP_REFERER RewriteRule?