Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Apache Alias to a file inside a VHost

Posted on 2014-04-01
3
Medium Priority
?
322 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

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
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…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

721 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