David T-G wrote:
Per, et al --
...and then Per Jessen said... % % > ?? Wed, 20 May 2015 18:25:24 +0200 % > Per Jessen <per@computer.org> ??????????: % > % >> I need to borrow an extra pair of eyes. Does anyone see any % >> significant difference between these two: % >> % >> a) <Directory ~ "^/srv/www/vhosts/[^/]+/htdocs"> % >> b) <Directory "/srv/www/vhosts/*/htdocs"> % ... % With (a), all of a sudden it seemed like .htaccess was not being read. I % have not looked into it in any detail yet. [snip]
The only thing that comes to mind is that the * may not be parsed quite like a regexp (it should be .*) or like shell globbing (it would be limited to one dir level) but instead covers any depth. The
[^/]+
clearly is limited to only one level.
Yep - in my case, the structure only has one level: /srv/www/vhosts/xxxxxx/htdocs If I had something like /srv/www/vhosts/xxx/yyy/htdocs the regexp version would clearly fail, but as I don't, I can't explain the behaviour. -- Per Jessen, Zürich (11.1°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org