我是IIS新手并试图将以下Apache规则转换为它:
rv_series = (RecyclerView) fragView.findViewById(R.id.rv_series);
dbHelper = new DatabaseHelperS(getActivity());
Cursor c = dbHelper.getAllSeries();
规则的想法是阻止IIS提供服务:
任何以“。”或
任何以“。”开头的文件夹,但文件夹为“./well-known/acme-challenge”
提前致谢;)
答案 0 :(得分:0)
似乎[E = BASE:%1]无法转换为IIS
第1部分
# prevent httpd from serving dotfiles (.htaccess, .svn, .git, etc.)
# - except let's encrypt challenge
RedirectMatch 403 ^/?\.(?!/well-known/acme-challenge/[\w-]{43}$)
这将转换为web.config
<rule name="Deny files and folderd starting with . but allow folder .well-known" patternSyntax="ECMAScript" stopProcessing="true">
<match url="(^\.|\/\.(?!well-known))" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll">
</conditions>
<action type="AbortRequest" />
</rule>
希望它能帮助别人^^