Share » Forums » Install & configuration » SiteAccessRules -- how to declare a...

SiteAccessRules -- how to declare a default access rule for nonmatching requests ?

SiteAccessRules -- how to declare a default access rule for nonmatching requests ?

Sunday 26 January 2003 5:47:58 am - 2 replies

Author Message

Adolfo Barragán

Sunday 26 January 2003 11:51:41 pm

> Is it possible to declare a default site access rule in ezp3
> site.ini or elsewhere to cope with URIs that do not match
> any of the required patterns like "admin" or "user" in order
> to decide which access path to follow? I could not find an
> answer in the docs.

Yes. In site.ini, under [siteSettings]

# Which page to show when the root index is accessed
IndexPage=/content/view/sitemap/2/

# What to do when a module does not exists, use either defaultpage or displayerror
ErrorHandler=displayerror
DefaultPage=/content/view/sitemap/2/

# Default access is needed when uri type matching is done, this is
# because with empty urls it's not possible to fetch the access
DefaultAccess=

So, you can set DefaultPage and DefaultAccess to match your needs.

Regards
Adolfo Barragán

Volker Lenz

Monday 27 January 2003 2:41:03 am

Thank you very much, Adolfo. That's exactly what I had not figured out.

Have a nice day.

Volker

> > Is it possible to declare a default site access rule in
> ezp3
> > site.ini or elsewhere to cope with URIs that do not
> match
> > any of the required patterns like "admin" or "user" in
> order
> > to decide which access path to follow? I could not find
> an
> > answer in the docs.
>
> Yes. In site.ini, under [siteSettings]
>
> # Which page to show when the root index is accessed
> IndexPage=/content/view/sitemap/2/
>
> # What to do when a module does not exists, use either
> defaultpage or displayerror
> ErrorHandler=displayerror
> DefaultPage=/content/view/sitemap/2/
>
> # Default access is needed when uri type matching is done,
> this is
> # because with empty urls it's not possible to fetch the
> access
> DefaultAccess=
>
> So, you can set DefaultPage and DefaultAccess to match your
> needs.
>
> Regards
> Adolfo Barragán

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu