Friday 13 December 2002 6:06:51 am
I've just had trouble with my site.ini, due to a problem in the access.php file. The following is a 'snippet' from my site.ini. I was wondering why beta3 would not never set the site access according to my port settings:
----------------[Begin of snippet]-------------------
[SiteAccessSettings]
MatchOrder=port
URIMatchType=regexp
URIMatchElement=1
URIMatchRegexp=/(admin|user)
URIMatchRegexpItem=1
HostMatchType=regexp
HostMatchElement=0
HostMatchRegexp=^(.+)\.[a-z0-9]+\.dvh[0-9]\.ez\.no$
HostMatchRegexpItem=1
HostMatchSubtextPre=
HostMatchSubtextPost=.dvh1.ez.no
IndexMatchType=element
IndexMatchElement=0
IndexMatchRegexp=/index_(.+)\.php$
IndexMatchRegexpItem=1
IndexMatchSubtextPre=index_
IndexMatchSubtextPost=.php
StaticMatch=user
RequireUserLogin=true CheckValidity=false
[PortAccessSettings]
8082=hio
80=user
8080=admin ----------------[End of snippet]------------------- (Granted, this SiteAccessSettings section is much bigger than necessary, but that should not make a difference.) I found out that if there is a "Static match=xxx" line anywhere in this section, beta3 would IGNORE the MatchOrder directive !!!
I suggest you rewrite the code so that it is more predictable. The MatchOrder line, and ONLY (!) the MatchOrder line, should be responsible for the MatchOrder. This way, the StaticMatch line would be recognized if, and ONLY if, the MatchOrder was "static".
|