Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Here is what we have:

 Alias /assets/ "/home/virtual/public_assets/"
 AliasMatch ^/~([a-zA-Z0-9]+)/assets/(.*)$ /home/virtual/public_assets/$2

 <Directory "/home/virtual/public_assets">
      AllowOverride All
 </Directory>

Here is the URI we are trying to match to:

 /~admin30/assets/js/tests.js

The Alias directive works for our live sites, however, the AliasMatch which is supposed to match user directories does not.

share|improve this question
2  
if you have enabled the userdir directive, try to disable it –  neo Jan 23 '13 at 11:34
    
Why not use a cleaner conditional rewrite using htaccess? –  bybe Feb 12 '13 at 23:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.