Forum OpenACS Q&A: public pages on restricted server

Posted by David Kuczek on
I have RestrictEntireServerToRegisteredUsersP set to 1, because only
registered users are allowed on the plattform for now.

But I have a hand full of static html pages that I want to
serve from the same server...

How can I do that?

Posted by Don Baccus on
Probably the easiest way is to stuff them into a single directory under your pageroot and hack the filter to allow access to it.

Just grep for the parameter (in the tcl library directory) to find the  filter.

Posted by David Kuczek on
muchos gracias,

for everyone that wants to do the same...

You have to change the proc ad_restrict_entire_server_to_registered_users.

I just added a  "&& ![string match "/MyPublicDirectory/*" [ns_conn url]]"