C# 更改SSL网站的Web.Config
您好: 我有一个端口为:99的SSL网站。在我的web.config中,为了通过此SSL端口,我必须进行哪些更改以及在何处进行更改 这是我的Web.Config文件:C# 更改SSL网站的Web.Config,c#,asp.net,web-config,web-deployment,C#,Asp.net,Web Config,Web Deployment,您好: 我有一个端口为:99的SSL网站。在我的web.config中,为了通过此SSL端口,我必须进行哪些更改以及在何处进行更改 这是我的Web.Config文件: <?xml version="1.0"?> <!-- For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/?LinkId=169433
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="Test.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
</configSections>
<connectionStrings>
</connectionStrings>
<system.web>
<compilation debug="false" targetFramework="4.0" />
<authentication mode="Forms">
<forms loginUrl="Default.aspx" timeout="2880" />
</authentication>
<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices"
enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"
maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"
applicationName="/" />
</providers>
</membership>
<profile>
<providers>
<clear/>
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
</providers>
</profile>
<roleManager enabled="false">
<providers>
<clear/>
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
<add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
</providers>
</roleManager>
</system.web>
<system.webServer>
<security>
<access sslFlags="Ssl"/>
</security>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>
该站点向我显示了以下错误:
如果您试图执行CGI,则无法显示该页面,
ISAPI或其他可执行程序
从一个不允许
要执行的程序。
请尝试以下操作:•联系
如果需要,请与网站管理员联系
相信这个目录应该允许
执行访问。HTTP错误403.1-
禁止:执行访问被拒绝
互联网信息服务(IIS)
以下是我的IIS 6.0设置的外观:
不知道这里该怎么办?有人知道这件事吗?谢谢 显示在IIS管理器中IIS6中授予执行权限的位置这看起来像是IIS配置问题。你能找到更多关于你托管网站的基础设施的信息吗(IIS6与IIS7/7.5等)。http/https端口也在IIS中配置,这就是为什么在Web.config中找不到配置项的原因。这是一个IIS配置错误。您需要向web应用程序授予执行权限。正如@Tr1stan所说,这取决于您运行的IIS的版本。我这样做了,但仍然是相同的错误。我用一张图片编辑了我的问题,你能看一下吗?@klm9971:而且你肯定是在配置IIS的正确部分,你没有在一个虚拟目录中托管这个特定的站点,这个虚拟目录是你现在向我们展示的根配置的子目录?@T:是的!此网站托管在一个外部服务器上,该服务器有一个根目录,根目录中有一个文件夹……我该怎么办?@klm9971:尝试设置与根目录相同的配置(仅脚本…或脚本和可执行文件),但是在承载web应用的虚拟目录上。@T:在主目录中,执行权限为:无