Hello Everyone!
I'm new in OLS and would like to migrate to it from Apache. And I faced a problem how to close an entire directory from access from the internet. The directory is inside html pages and is required for working of other services.
In Apache I can close a dir with all files in it with just two lines in .htaccess:
Order allow,deny
Deny from all
In OLS we don't have such a thing. But we can organize a context that points to this dir and make it is not accessible:
In that case I can't get access to this dir from web. But I can get access to the files in that dir if I know their names. This is a strange behaviour.
According to a documentation I can also use Rewrite. But I don't understand how to form in in a correct way.
I'm new in OLS and would like to migrate to it from Apache. And I faced a problem how to close an entire directory from access from the internet. The directory is inside html pages and is required for working of other services.
In Apache I can close a dir with all files in it with just two lines in .htaccess:
Order allow,deny
Deny from all
In OLS we don't have such a thing. But we can organize a context that points to this dir and make it is not accessible:
In that case I can't get access to this dir from web. But I can get access to the files in that dir if I know their names. This is a strange behaviour.
According to a documentation I can also use Rewrite. But I don't understand how to form in in a correct way.