Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Nov 14, 2011 7:57 pm 
Offline
Senior Newbie

Joined: Tue Sep 20, 2011 10:46 am
Posts: 8
Website: http://www.smartspacehq.com
hi all

i was hoping someone out there might be able to help with a AliasMatch regular expression in apache.

not being competant at regex, i am always left scratching my head over anything but simple expressions

what i am trying to do is to match all but a few directories with an alias. what i can't seem to do is to exclude some directories from the match

here is what i have

Code:
AliasMatch ^/(?=.*?[a-zA-Z0-9]+)((?!content|secure|secureadmin|template|setup|sites|cards).)/?(.*)*$ /home/$1/www/$2


it is supposed to match all the directories of the domain with the exception of content, secure etc.

i have been able to get the full match to work, but as soon as i exclude directories, it just doesn't work. i have tried many other alternatives of course, but have no idea really if i am getting closer or further away from a solution.

any help would be appreciated

cheers

rs


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group