Solved

Apache Alias to a file inside a VHost

Posted on 2014-04-01
3
317 Views
Last Modified: 2014-06-18
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>

Open in new window

which doesn't work, but if I change the Alias to this
Alias /info.php /var/www/z-push/info.php

Open in new window

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.
0
Comment
Question by:coanda
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 23

Expert Comment

by:Maciej S
ID: 40104169
Your first alias should work as you expect.
Check your configuration - in alias command you are referring to /var/www/z-push, but below - in Directory section you are referring to /usr/share/z-push. Maybe there are some permission issues because of this?
0
 
LVL 3

Accepted Solution

by:
coanda earned 0 total points
ID: 40132712
0
 
LVL 3

Author Closing Comment

by:coanda
ID: 40141644
Correct response received in alternate location.
0

Featured Post

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question