Afficher un message
Vieux 02/05/2006, 00h53   #1
Julian Wood
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut regex in locationmatch

I posted about this a few weeks ago and got pretty far, but now I have
an additional requirement that I haven't been able to create a regex
for. I'm using locationmatch like this:

<LocationMatch "/tlcprojectswiki/index.php/[^(Category)][^(Public)]">
...
require valid-user
</LocationMatch>

I need this regex to match as follows:

/tlcprojectswiki/index.php/Public/tester -- open
/tlcprojectswiki/index.php/Main_Page -- pswd (ie match)
/tlcprojectswiki/index.php/User:Woodj -- pswd (ie match)
/tlcprojectswiki/skins/monobook/IE55Fixes.css -- open
/tlcprojectswiki/skins/common/wikibits.js -- open
/tlcprojectswiki/images/UofC.gif -- open
/tlcprojectswiki/index.php/Category:Public -- open
/tlcprojectswiki/index.php?title=Special:Userlogin&returnto=Public/Projec
t_Versioning_-_Best_Practices -- pswd (ie match)

The provided regex matches the first two, but not the last required
match.

Any ideas how to get it to match that last one? I've tried lots of
permutations, but haven't gotten much closer.

Of course, adding another LocationMatch just for this last requirement
doesn't work. In fact, it makes the entire directory open, which makes
no sense to me at all, other than that they conflict and so Apache
ignores both directives.

Thanks in advance,

Julian
  Réponse avec citation
 
Page generated in 0,04940 seconds with 9 queries