gza / oczpush

Owncloud Z-push 2.0 plugin
GNU Affero General Public License v3.0
31 stars 26 forks source link

Microsoft-Server-ActiveSync Rwrite Rule in htaccess #15

Open ghost opened 11 years ago

ghost commented 11 years ago

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 commented 11 years ago

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

ghost commented 11 years ago

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

gza commented 11 years ago

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

gza commented 11 years ago

Why did you set ACTIVESYNC and REMOTE_USER ??

ghost commented 11 years ago

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

gza commented 11 years ago

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