我们有一个运行在服务器A上的ASP.NET应用程序,它位于它自己的域中,在web.config中我们模拟一个用户。 现在,这个应用程序需要访问位于不同域的服务器B上的一个文件夹,并且由于缺乏权限,服务器B拒绝访问。 所以我们手动从cmd尝试用“/ netonly”来模拟相同的用户,然后就可以访问Server B文件夹。 现在我们如何以编程方式实现这一点? 任何帮助,将真正感激它!
我正在IIS中运行一个网站,并运行另一个软件,通过端口1935在同一台服务器上stream媒体。 stream媒体软件还具有通过端口443传送内容的function。我已经为其分配了一个SSL证书,但是它无法绑定到端口443上的IP地址,因为它正在使用IIS。 我无法使用'netsh'命令来明确绑定网站使用的IP地址,因为我还需要绑定IIS中的stream式应用程序的IP地址,以便可以通过端口80传输内容。 有一种方法可以阻止特定IP地址的端口443上的IIS列表,同时仍允许它在端口80上监听相同的IP?
我正在尝试使用IIS重写模块将httpsredirect到另一个https。 这是我曾经试过的: testing1: <rewrite> <rules> <rule name="Redirect Maps Rule" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{StaticRedirects:{PATH_INFO}}" pattern="(.+)" /> </conditions> <action type="Redirect" url="{C:1}" appendQueryString="True" redirectType="Permanent" /> </rule> </rules> <rewriteMaps> <rewriteMap name="StaticRedirects"> <add key="https://sub.olddomain.com/sitename" value="https://sub.newdomwain.co.uk/sitename" /> </rewriteMap> </rewriteMaps> </rewrite> testing2: <rule name="https test" stopProcessing="true"> <match url=".*" /> <conditions logicalGrouping="MatchAny"> <add input="{URL}" pattern="https://sub.olddomain.com/sitenam$" /> </conditions> <action type="Redirect" appendQueryString="false" […]
非常奇怪的行为。 我的服务器返回所有其他请求的gzip响应。 在图片中,你可以看到,对于用户代理“/ gecko /”,请求没有被压缩,而“/ gescko /”则是。 我正在使用iis 7.5。 返回的内容是dynamic的,而不是静态的。 这里是applicationHost.config的部分。 我深感困惑 <httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files" staticCompressionDisableCpuUsage="95" staticCompressionEnableCpuUsage="60" dynamicCompressionDisableCpuUsage="95" dynamicCompressionEnableCpuUsage="50"> <scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" staticCompressionLevel="9" /> <staticTypes> <add mimeType="text/*" enabled="true" /> <add mimeType="message/*" enabled="true" /> <add mimeType="application/x-javascript" enabled="true" /> <add mimeType="application/atom+xml" enabled="true" /> <add mimeType="application/xaml+xml" enabled="true" /> <add mimeType="application/json" enabled="true" /> <add mimeType="application/json; charset=utf-8" enabled="true" […]
我有两个进程/应用程序运行在端口8888和端口8890。 我可以通过http:// localhost:8888 & http:// localhost:8890访问我的windows服务器。 我目前使用IIS GUI来重写url。 应用程序请求路由(ARR)和URL重写已安装。 我已经成功地重写或redirect到服务器的所有请求到一个端口 – 本质上我映射“*”通配符到“ http:// localhost:8888 / {R:0}”,它工作时,我访问http:/ / /网站 ! 我怎样才能扩展到以下场景: http:// website / solution1 /应该redirect到端口8888& http:// website / solution2 /应该redirect到端口8890 请帮忙。
我在Stack Overflow上问过这个问题,但也许这是一个经验丰富的IIS 7pipe理员可能更多的了解,所以我也在这里问。 使用Microsoft.Web.Administration命名空间操作Handler Mappings时,是否有一种方法可以删除在站点级别添加的<remove name="handler name">标记。 例如,我有一个从全局处理器映射configurationinheritance所有处理器映射的站点。 在applicationHost.config , <location>标签看起来像这样: <location path="60030 – testsite-60030.com"> <system.webServer> <security> <authentication> <anonymousAuthentication userName="" /> </authentication> </security> </system.webServer> </location> 要删除处理程序,我使用类似这样的代码: string siteName = "60030 – testsite-60030.com"; string handlerToRemove = "ASPClassic"; using(ServerManager sm = new ServerManager()) { Configuration siteConfig = serverManager.GetApplicationHostConfiguration(); ConfigurationSection handlersSection = siteConfig.GetSection("system.webServer/handlers", siteName); ConfigurationElementCollection handlersCollection = handlersSection.GetCollection(); […]
我有一个IIS 7.5服务器运行了大约一个月,但我突然注意到,FTP似乎挂起。 这在DOS ftp客户端中是最好的。 C:\Documents and Settings\jhoge>ftp FTPSite.com Connected to FTPSite.com. 220 Microsoft FTP Service User (FTPSite.com:(none)): UserName 331 Password required for UserName. Password: 230 User logged in. ftp> dir […server hangs here for about a minute …] Connection closed by remote host.
我使用自签名证书在SSL 7.5中使用SSL设置了FTP站点。 我可以login并查看我的视图我的虚拟目录,它们都设置为UNCpath。 问题是我不能通过FTP写入任何位置。 我有3个Active Directory组设置。 每个组都具有在文件夹级别正确设置的权限。 这些权限是通过“有效权限”选项卡validation给定用户的权限。 但是,当我作为一个用户(designer1)属于一个组(devise),有权访问我的虚拟目录指向的文件夹login时,我得到的访问被拒绝。 我尝试了几乎所有的configuration,无法使其工作。 传统stream水线模式下,我的FTP站点的应用程序池是自己的池“FTP”,没有托pipe代码。 应用程序池标识应该是什么? 在FTP“站点”属性中,我将“连接为”设置为“应用程序用户(传递身份validation)”,以便文件权限将决定该用户是否具有写入权限。 同样在FTP站点属性下,我禁用了匿名身份validation并启用了基本身份validation。 我没有设置FTP授权规则,因为我可以在“特定angular色和特定用户”字段中键入任何内容,并且不validation它们是否是真正的用户或组。 有没有caching机制,我不能改变设置,然后立即testing它们? 我总是重新启动IIS服务并重新启动站点并回收应用程序池。
我似乎无法input到Windows文件/文件夹ACL设置GUI中的“IIS APPPOOL \ PoolName”“帐户”,它不能识别该帐户。 我知道这是香草Windows 2008中的一个问题,您需要使用icacls,但是它应该在GUI中的Windows 2008 R2上运行。 请参阅 – http://forums.iis.net/t/1156692.aspx 有任何想法吗?
这是可能的重写.NET Framework错误: Server Error in '/' Application. Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. … <!– Web.Config […]