Yaws authorisations for any URL. How?

Hello!

There are my bad - totally got forgotten how to redirect any URL to the auth checking module when starting Yaws embedded:

{port,SERVER_PORT},
{listen,{0,0,0,0}},
{yaws,SERVER_SIGNATURE},
{docroot,DOCROOT},
{errormod_404,error_404},
{errormod_401,error_401},
{auth,[
	{dir,"ANY_URL_HERE"},
	{mod,auth_checker}
]}

What need to be instead of ‘ANY_URL_HERE‘?
or it need to be done with AppMode instead of Auth?

My project has URLs like

https://server.domain:0000/[pageID]/[ModuleID]/file.extension

All of requests supplied with custom header that contain security data. Based on this security data there are checking PageID and ModuleID and this PageID and ModuleID dynamically generated. If all is Ok all files available if not error 401 in reply. How to check it out with Yaws authorisation mechanism?

Issue closed.

The cause of all of my troubles were in wrong status header in errormode. It was like everything is Ok and because of it 404 was looking like 200.

The config is Ok. When “/“ every URL passing checking.