Open ghost opened 11 years ago
Pretty cool... Does it work with a relative path ? (to be included in the code)
Hmm i fear no, but i dont know exactly. I must study the Apache Documentation for this.
don't loose time on it until you want to learn about apache Rewrites. I'll do it I'm a sysadmin ;-)
Why did you set ACTIVESYNC and REMOTE_USER ??
I think, i must do this, to make Authorization work. But if i dont need this, what is the correct Syntax?
For me that works, I added php conf, could you try ?
RewriteEngine On RewriteRule /Microsoft-Server-ActiveSync(.*) /oczpush/index.php$1
php_flag magic_quotes_gpc off php_flag register_globals off php_flag magic_quotes_runtime off php_flag short_open_tag on php_value memory_limit 128M
You can use a htaccess file to set the Microsoft-Server-ActiveSync dir, if you are on a shared Webhost and dont have access to the Apache Configuration:
RewriteEngine on RewriteBase / RewriteRule Microsoft-Server-ActiveSync(.*) /var/www/user/html/oczpush/index.php$1 [E=ACTIVESYNC:true,E=REMOTE_USER:%{HTTP:Authorization}]