Hello guys,
I try to move from nginx to httpd. But I have a problem with rewrite. I try to
use this nginx-rule:
rewrite ^/Microsoft-Server-ActiveSync?(.*)$
/tine20/index.php?frontend=activesync$1;
with httpd:
location "/Microsoft-Server-ActiveSync" {
block return 302
"/tine20/index.php?frontend=activesync$QUERY_STRING"
}
The redirect seems to work - but no auth takes place.
Is it generally possible what I try to do? And if yes - what I'm missing?
The output looks not bad at a first glance:
webtest.local 192.168.176.12 - - [03/Feb/2017:01:01:01 +0100] "POST
/Microsoft-Server-ActiveSync?Cmd=Sync%26User=USER%26DeviceId=DEVICEID%26DeviceType=SAMSUNGSMG930F
HTTP/1.1" 302 0
server webtest.local, client 64 (3 active), 192.168.176.12:60819 ->
192.168.177.100:443,
/tine20/index.php?frontend=activesyncCmd=Sync%26User=USER%26DeviceId=DEVICEID%26DeviceType=SAMSUNGSMG930F
(302 Found)
webtest.local 192.168.176.12 - - [03/Feb/2017:01:01:02 +0100] "GET
/tine20/index.php?frontend=activesyncCmd=Sync%2526User=USER%2526DeviceId=DEVICEID%2526DeviceType=SAMSUNGSMG930F
HTTP/1.1" 200 0
Thanks in advance.
Uwe