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]]"