Solved

Apache Alias to a file inside a VHost

Posted on 2014-04-01
3
318 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

Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Record locking on classic ASP 3 64
Political Map of Europe - Wikipedia? 4 48
Whitelisting IP's in .htaccess? 2 24
Developers / Staff Setup 10 48
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

710 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