I am using Z-Push on a Webserver with Lighttpd and with no Apache. So PHP is not running as module. I am using the fast-cgi support from lighty. Here are my modifications:
lighttpd-func.php
- Code: Select all
<?php
function apache_request_headers()
{
$headers = array();
foreach(array_keys($_SERVER) as $skey)
{
if(substr($skey, 0, 5) == "HTTP_")
{
$headername = str_replace(" ", "-", ucwords(strtolower(str_replace("_", " ", substr($skey, 0, 5)))));
$headers[$headername] = $_SERVER[$skey];
}
}
return $headers;
}
?>
The function "apache_request_headers" is only available if you are using an Apache with PHP as module. So I have to create an own function...
After you have created the file with the function you should include it on the top of the index.php-file
- Code: Select all
include_once("lighttpd-func.php");
I included this line before the include of the config-file.
And at the end here's the rewrite rule
- Code: Select all
alias.url += (
"/Microsoft-Server-ActiveSync" => "/var/www/z-push/index.php",
)
Hava a lot of fun...
cu tb.
