Is there an equivalent .htaccess file in file-based IIS6? (not config / plugin)

There are many similar questions, but they all seem to be related to either setting permissions or installing a plugin.

I am looking for a solution that is “dumb”, that is, allow code deployment from the source control and automatically have access to certain paths, without having to configure the server.

I only need to lock directories and files, none of the other features that have .htaccess.

Just to be clear, we use ColdFusion, not .NET, and although CF has various ways to process its own scripts, it does nothing with non-CFML scripts. (This can be done, for example, config.xml.cfm, but this is a dirty solution that requires updating the code, etc.)

(Of course, ideally, these directories / files should not even be in webroot, and if I could switch to Apache or IIS7, I could just use .htaccess, but at the moment these are not options.)

My current solution would be a readme.deploy.txt file containing instructions on how to manually set permissions for the corresponding files and directories in IIS Manager, but obviously I would rather avoid human intervention for him - any suggestions?

+3
source share
3 answers

You can create a script that will do this during a round-robin deployment, for example, a scheduled task when you use a PowerShell script or a batch script that sets up the environment.

IIS6 Metabase, , , , , ii6

.

root-, , , .

,

+3

, ASP.net .config, -. , .htaccess IIS.

0

.NET has Routing , which allows you to rewrite paths. It is embedded in the MVC framework ... I'm not sure how to configure / use it for regular ASP.NET applications.

Update: did not know that you are not on .NET.

Perhaps you are just looking for File / Folder Permissions Settings ? I don’t know anything about setting these parameters using the configuration file ...

0
source

Source: https://habr.com/ru/post/1711281/


All Articles