Solved

Apache Alias to a file inside a VHost

Posted on 2014-04-01
3
312 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
  • 2
3 Comments
 
LVL 23

Expert Comment

by:Maciej S
Comment Utility
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
Comment Utility
0
 
LVL 3

Author Closing Comment

by:coanda
Comment Utility
Correct response received in alternate location.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

743 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now