[horde] nginx dynamic view problem?

Ruud Baart r.j.baart at prompt.nl
Sat Jan 10 21:53:23 UTC 2015


Thank you again. Seems to work with my android smartphone 5.0.1 and a 
Outlook 2013 client.

I changed the http://wiki.horde.org/webserver/nginx accordingly.


A. Schulze schreef op 10-01-15 om 15:23:
>
> Ruud Baart:
>
>> Your configuration works but active sync does not work anymore.
> sure, I don't use it.
>
>> in the section location / I added the lines from my previous 
>> configuration in which activesync worked as it should:
>>
>>       rewrite_log on;
>>       rewrite ^/Microsoft-Server-ActiveSync(.*)$ /rpc.php$1 last;
>>       rewrite ^/[Aa]utodiscover/[Aa]utodiscover.xml /rpc.php;
> this is apache way to solve a problem. I suggest reading
> http://nginx.org/en/docs/http/converting_rewrite_rules.html
>
> in nginx it should look like this:
> (the order locations appear in nginx.conf does not matter)
>
> location / {
>   ...
> }
>
> location /Microsoft-Server-ActiveSync {
>   alias /path/to/horde/rpc.php;
>   fastcgi_split_path_info ^(.+\.php)(/.+)$;
>   $usual fcgi_arguments
> }
>
> location /autodiscover/autodiscover.xml {
>   # same as above ...
> }
>
> you could repeat the last block 4 times in different cases to avoid 
> regex matching on every request
> No idea if it's worth. But maybe somebody could measure the difference 
> once he has a running setup.
>
> feel free to extend http://wiki.horde.org/webserver/nginx
>
> Andreas
>


-- 
Regards,

Ruud Baart



More information about the horde mailing list