是否有一个基于文件的等值IIS6为.htaccess? (未配置/插件) [英] Is there a file-based equivalent to .htaccess in IIS6? (not config/plugin)

查看:122
本文介绍了是否有一个基于文件的等值IIS6为.htaccess? (未配置/插件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有很多的类似于的问题,这一点,但他们似乎都涉及到两种配置权限或安装插件。

There are lots of similar questions to this, but they all seem to involve either configuring permissions or installing a plugin.

我正在寻找一个解决方案,那就是哑巴 - 即允许code从源头控制部署,并自动获得某些被阻止的路径,没有任何需要配置服务器

I'm looking for a solution that is "dumb" - i.e. to allow the code to be deployed from source control and automatically have access to certain paths blocked, without anyone needing to configure the server.

我只需要目录和放大器;文件阻挡,没有一个的.htaccess有其他的能力。

I only need directory & file blocking, none of the other abilities that .htaccess has.

只是要清楚,我们正在使用的ColdFusion,没有.NET,以及同时CF已经杂七杂八的方式来处理自己的脚本,它不会做非CFML脚本什么。 (这是可以做到的,例如config.xml.cfm,但是这是一个混乱的解决方案,需要更新code等。)

Just to be clear, we are using ColdFusion, not .NET, and whilst CF has assorted ways to handle its own scripts, it doesn't do anything with non-CFML scripts. (It is possible to do, for example config.xml.cfm, but that is a messy solution that requires updating code, etc.)

(当然,理想的这些目录/文件甚至不应该的的在根目录,如果我可以切换到Apache或IIS 7,我可以简单地使用的.htaccess ,但这些都不是选择的时刻。)

(Of course, ideally these directories/files shouldn't even be in the webroot, and if I could switch to Apache or IIS7 I could simply use .htaccess, but those aren't options at the moment.)

我目前的解决方案将是一个包含关于如何手动设置权限的相关文件及放指令的readme.deploy.txt;在IIS管理器的目录,但很明显,我更preFER避免人工干预呢 - ?任何建议

My current solution is going to be a readme.deploy.txt that contains instructions on how to manually set the permissions on the relevant files & directories in IIS Manager, but obviously I'd much prefer to avoid human intervention for it - any suggestions?

推荐答案

您可以创建一个脚本,将当你循环部署中做到这一点,好比说在您使用PowerShell脚本或批处理脚本设置计划任务的环境。

You could create a script that would do this when you cycle through your deployment, like say a scheduled task where you use a PowerShell script or batch script that sets up the enviroment.

通过IIS6这将需要的配置数据库,它可以解决你的问题出碴,但它需要的脚本能够访问系统配置数据库,执行系统命令,否则你将不得不学习如何使用II6元数据库命令文件

With IIS6 this is going to require mucking with the Metabase, which could solve your problem, but it will require scripts to have access to the system metabase and execute system commands or you going to have to learn how to use the ii6 metabase command files

看到这样的<一个href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/1805162e-6ac5-4a98-9a08-919c4c10827d.mspx?mfr=true"相对=nofollow>这篇文章

如果他们有root权限,也许这将是明智的,只需要创建一个安装工具,可以调整设置以使它们。

If they have root access maybe it would be wise to just create a installation utility that can tweak the settings for them.

祝你好运,

迈克

这篇关于是否有一个基于文件的等值IIS6为.htaccess? (未配置/插件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆