Hi,

I'm not really sure if this is what you mean, but you could add a matcher for this in your sitemap I guess?

Something like:

http://localhost:8888/cocoon/test1/blah.js

would match with:

<map:match pattern="test1/**">
  <map:read src="test1/{1}"/>
</map:match>

And for the second one you could do something like:

http://localhost:8888/cocoon/test2/blah.js

<map:match pattern="test2/**">
  <map:generate src="empty.xml"/>
  <map:serialize status-code="404"/>
</map:match>

which will generate a 404 for all requests that go to test2/something.

Regards,

Jeroen Reijn


[EMAIL PROTECTED] wrote:
Hello List,

How can I set up Cocoon to allow accses only to one specific directory
within the cocoon installation?
For instance, I have a directory 'cocoon/test1' and 'cocoon/test2'. when
ever Cocooc is called on another location than 'test1' (root, test2) I want
Cocoon to perform a 404 or simular error. (best would be Cocoon is not
answering at all.)

Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to