Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Microsoft-Server-ActiveSync Rwrite Rule in htaccess #15

Open
ghost opened this issue Dec 19, 2012 · 6 comments
Open

Microsoft-Server-ActiveSync Rwrite Rule in htaccess #15

ghost opened this issue Dec 19, 2012 · 6 comments

Comments

@ghost
Copy link

ghost commented Dec 19, 2012

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}]

@gza
Copy link
Owner

gza commented Dec 27, 2012

Pretty cool...
Does it work with a relative path ? (to be included in the code)

@ghost
Copy link
Author

ghost commented Dec 28, 2012

Hmm i fear no, but i dont know exactly. I must study the Apache Documentation for this.

@gza
Copy link
Owner

gza commented Dec 28, 2012

don't loose time on it until you want to learn about apache Rewrites.
I'll do it I'm a sysadmin ;-)

@gza
Copy link
Owner

gza commented Dec 29, 2012

Why did you set ACTIVESYNC and REMOTE_USER ??

@ghost
Copy link
Author

ghost commented Dec 29, 2012

I think, i must do this, to make Authorization work. But if i dont need this, what is the correct Syntax?

@gza
Copy link
Owner

gza commented Dec 29, 2012

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant