I'm trying to setup z-push which requires an alias /Microsoft-Server-Activesync
that points to a file index.php
in another directory outside of the VHost location. To test I setup a file in the same path and created the following
Alias /info /var/www/z-push/info.php
<Directory "/usr/share/z-push/">
Options -Indexes
AllowOverride None
Order allow,deny
allow from all
</Directory>
which doesn't work, but if I change the Alias to this
Alias /info.php /var/www/z-push/info.php
I can access it at the url example.com/info.php
. Except I need to be able to have example.com/info
for the ActiveSync stuff to work.
I assume I can fix this with a RewriteRule but I'm not having any luck with that.
Thanks.
EDIT :
Here is my virtual host config :
SetEnv RAILS_ENV production
RewriteEngine On
# Rewrite index to check for static
RewriteRule ^/$ /index.html [QSA]
# Rewrite to check for Rails cached page
RewriteRule ^([^.]+)$ $1.html [QSA]
DocumentRoot /var/www/redmine/public/
<Directory /var/www/redmine/public/>
Options +FollowSymLinks +MultiViews
AllowOverride all
Order allow,deny
Allow from all
</Directory>
Alias /Microsoft-Server-ActiveSync /var/www/z-push
<Directory "/usr/share/z-push">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
Allow from all
</Directory>
php_flag magic_quotes_gpc off
php_flag register_globals off
php_flag magic_quotes_runtime off