iis

Create a download link with Microsoft IIS

孤人 提交于 2021-02-05 12:21:12
问题 I want to set up a direct download link using Microsoft IIS. We already have a web page using the IP address that points to a /web folder on our server, but I want to create a separate location on my server where I can put downloadable files such that the client can just type the link and get the download: http://IPADDR/download/filename.zip. Are there any resources on how to do this? Right now, typing http://IPADDR brings up our simple web page which contains a link that launches an

MS SQL Native Client Login failed for user when connecting via PHP

前提是你 提交于 2021-02-05 10:47:06
问题 I have a Windows 2008 R2 Datacenter server with IIS 7.5, MS SQL 2012 Express, using PHP 5.6 trying to connect to a database I created, testDB, via Windows Authentication, but am failing to do so. Here is my PHP I am using to connect to my SQL Server\Instance: <?php $serverName = "nmc-intranet\intranetsql"; $connectionInfo = array("Database"=>"testDB", "UID"=>"username", "PWD"=>"password"); $conn = sqlsrv_connect( $serverName, $connectionInfo); if ( $conn ) { echo "Connection successful.<br />

Login prompt in spite of having windows authentication enabled

匆匆过客 提交于 2021-02-05 09:39:40
问题 We have enabled Windows authentication (Anonymous access is disabled) in IIS but, I am getting prompt to enter user-credentials for application Checked for the providers under authentication and the order is correct as well. Any pointers would be helpful. For information is it a .NET application hosted on IIS 7.5 回答1: Not sure if this is old but i hope it may be helpful for someone like me in near future. In Windows Authentication feature, goto providers. Just ensure that the NTLM is the only

How to Enable .MP4 File Video In IIS 7.5

淺唱寂寞╮ 提交于 2021-02-05 09:31:26
问题 I want to open file video but it not working I'm tried enabled directory browsing. Tried run aspnet_regiis.exe -i Finally How to open it? How to make it working? Thank you! 回答1: According to your description, I suggest you could add below config to set the MP4 mime map setting for your IIS web application. <?xml version="1.0"?> <configuration> <system.webServer> <staticContent> <mimeMap fileExtension=".mp4" mimeType="video/mp4" /> <mimeMap fileExtension=".m4a" mimeType="video/mp4" /> <

How to Enable .MP4 File Video In IIS 7.5

回眸只為那壹抹淺笑 提交于 2021-02-05 09:31:10
问题 I want to open file video but it not working I'm tried enabled directory browsing. Tried run aspnet_regiis.exe -i Finally How to open it? How to make it working? Thank you! 回答1: According to your description, I suggest you could add below config to set the MP4 mime map setting for your IIS web application. <?xml version="1.0"?> <configuration> <system.webServer> <staticContent> <mimeMap fileExtension=".mp4" mimeType="video/mp4" /> <mimeMap fileExtension=".m4a" mimeType="video/mp4" /> <

ASP.net URL Rewrite subdirectory to external URL

被刻印的时光 ゝ 提交于 2021-02-05 09:23:53
问题 I need to URL Rewrite a subdirectory to an external domain. Example: When visiting "https://example1.com/test", "https://example2.com/hello" should open. The URL should still be "https://example1.com/test". I tried to solve this by adding a Rewrite rule in web.config, but it don't works. Here is the Rewrite rule I made: <rule name="TestRule" stopProcessing="true"> <match url="^test(/.*)?$" /> <action type="Rewrite" url="https://example2.com/hello" appendQueryString="false" /> </rule> 回答1: In

How to configure IIS to map an ISAPI DLL off of a domain root

瘦欲@ 提交于 2021-02-05 09:15:30
问题 I have an ISAPI DLL installed under a directory like: c:\inetpub\wwwroot\emsserver\emsserver.dll This is a Delphi RAD Server app. In IIS Manager (Windows 10), under Root (computer name) -> Sites -> Default Web Site -> Emsserver, I have a handler set up to handle "*.dll" requests with that DLL. The end result is I can access the app like: http://localhost/emsserver/emsserver.dll/some-action That works fine. All good there, output as expected. But the URL isn't very end user friendly. Question:

How to configure IIS to map an ISAPI DLL off of a domain root

不问归期 提交于 2021-02-05 09:14:04
问题 I have an ISAPI DLL installed under a directory like: c:\inetpub\wwwroot\emsserver\emsserver.dll This is a Delphi RAD Server app. In IIS Manager (Windows 10), under Root (computer name) -> Sites -> Default Web Site -> Emsserver, I have a handler set up to handle "*.dll" requests with that DLL. The end result is I can access the app like: http://localhost/emsserver/emsserver.dll/some-action That works fine. All good there, output as expected. But the URL isn't very end user friendly. Question:

SSL/TLS 1.2 Connection Issues - PHP/SQLSRV

笑着哭i 提交于 2021-02-05 08:21:30
问题 I recently disabled TLS 1.0 & TLS 1.1 on a web server, but it seems to have caused some issues with some of the PHP sites I'm running. The error in question is: "[Microsoft][ODBC Driver 11 for SQL Server]Encryption not supported on the client." but I have other sites running on TLS 1.2 on the same server, I even have other PHP-based sites still able to connect to the database despite being earlier versions of PHP (5.3.28, which I think might've even been before TLS 1.2 support was added.. so

UrlRewrite condition based on custom HTTP header

谁说我不能喝 提交于 2021-02-04 22:15:27
问题 I'm trying to configure a rule in UrlRewrite that has 2 conditions: HTTP header HTTP_HOST needs to match a certain domain (api.contoso.com) A custom HTTP header x-app-version needs to be present in the HTTP request based on this info, I'd like to redirect to a different version of the API in the back-end. Problem The rule is behaving as expected on the first condition. It kicks in when HTTP_HOST matches api.contoso.com. However, it ignores my custom x-app-version header. Assumption So, I fear