logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: DirectoryMatch and AliasMatch not working?
Author
alex.barylski



Joined: 30 Sep 2011
Posts: 3

PostPosted: Fri 30 Sep '11 20:32    Post subject: DirectoryMatch and AliasMatch not working? Reply with quote

I have the following VirtualHost (under WAMP) and it doesn't work - please note the static (non-regex) Alias and Directory DO WORK!!!

Can someone help me figure out whats wrong with this config?

Code:

<VirtualHost *:80>

  RewriteEngine on

  ServerName  temp.dev.local
  ServerAlias temp.dev.local
  DocumentRoot "C:\wamp\www\temp\public"

  <Directory "C:\wamp\www\temp\public">
    AllowOverride all
    Order Allow,Deny
    Allow from all
  </Directory>

  # Alias /private/application/core/page/assets/images/ "C:/wamp/www/temp/private/application/core/page/assets/images/"
  # <Directory "C:/wamp/www/temp/private/application/core/page/assets/images/">

  #http://temp.dev.local/private/application/core/page/assets/images/logo.jpg
  #C:\wamp\www\temp\private\application\core\page\assets\images

  AliasMatch ^/private/application/(.*)/(.*)/assets/images/ "C:/wamp/www/temp/private/application/$1/$2/assets/images/"
  <DirectoryMatch "^C:/wamp/www/temp/private/application/(.*)/(.*)/assets/images/">
    Options Indexes FollowSymlinks MultiViews Includes
    AllowOverride None
    Order allow,deny
    Allow from all
  </DirectoryMatch>

</VirtualHost>
Back to top
alex.barylski



Joined: 30 Sep 2011
Posts: 3

PostPosted: Fri 30 Sep '11 20:36    Post subject: Reply with quote

This is a very similar problem as to what I am experiencing however I am not sure how or where to apply the fix:

http://www.apachelounge.com/viewtopic.php?t=1566
Back to top


Reply to topic   Topic: DirectoryMatch and AliasMatch not working? View previous topic :: View next topic
Post new topic   Forum Index -> Apache