iis-7

How to make IIS7 stop serving a folder?

纵然是瞬间 提交于 2019-12-29 04:18:05
问题 I know that by defualt IIS won't server App_Data or bin folders content to the public. How to set one more folder to don't server to public? 回答1: The proper way to do that is using this: <configuration> <system.webServer> <security> <requestFiltering> <hiddenSegments> <add segment="My_Directory" /> </hiddenSegments> </requestFiltering> </security> </system.webServer> </configuration> This allows you to still access files located there from the IUSR account, but prevents actual requests for

Microsoft rewriting module - Force www on url Or remove www from url

流过昼夜 提交于 2019-12-29 03:29:49
问题 I have a shared hosting plan with Windows Server 2008 and IIS7.5, and there is Microsoft rewriting module installed and enabled. <rewrite> <rules> <rule name="myRule" patternSyntax="Wildcard"> <!--Rewriting code--> </rule> </rules> </rewrite> So, how to redirect mydomain.com/everywhere-in-site/my-page.html to www.mydomain.com/everywhere-in-site/my-page.html with Microsoft rewriting module? And what if I want to redirect www.mydomain.com/everywhere-in-site/my-page.html to mydomain.com

PHP on IIS7 with (PDO) MS-SQL support

﹥>﹥吖頭↗ 提交于 2019-12-29 01:01:28
问题 I'm running an IIS 7 windows server and a relevant part of my phpinfo's configure command currently reports this: cscript /nologo configure.js ...... "--without-mssql" "--without-pdo-mssql" "--without-pi3web" ...... "--with-mcrypt=static" What do I need to do to my server so that I can see the with-mssql above as opposed to seeing without-mssql? I was once told to recompile PHP. That's where the buck stopped. Cause this PHP came with IIS install so we never needed to compile PHP before. Re

Debugging 500 Internal Server Error on PHP running on IIS7 cluster

ε祈祈猫儿з 提交于 2019-12-28 13:46:30
问题 Recently my ISP switched our website to an IIS7.0 high availibility cluster. The website is running on PHP5.2.1 and I can only upload files (so no registry tweaks). I had tested the website before and everything seemed to be working, but now the checkout page fails with: 500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed. As error messages go, this isn't very informative. I've tried: ini_set('display_errors', 1); ini_set('error

Laravel .htaccess rewrite rule conversion to IIS

三世轮回 提交于 2019-12-28 13:29:28
问题 Laravel4 framework comes with a default .htaccess rule for create pretty urls. The rule is this. <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </IfModule> Question: Which is the equivalent in IIS ?? 回答1: You can use the import Apache rules feature to convert Apache rule to IIS. In your case, it will go as: Or in the web.config file: <rule name="Imported Rule 1" stopProcessing="true"> <match url="^" ignoreCase=

IIS7 - only serves up one page at a time. It's a making me crAzY!

橙三吉。 提交于 2019-12-28 12:03:45
问题 Situation: Classic ASP application, using a custom Application Pool. Default settings. On some IIS7 machines, IIS decides to serve only one page at a time. So if multiple load any pages from a site, each one has to load in succession. e.g. If I load http://foo.com/default.asp from one browser, and from another machine I load http://foo.com/differenturl.asp, the first has to finish before the other will load. It's almost like the w3p process is single threaded. Note, there is a setting called

How to increase thread-pool threads on IIS 7.0

让人想犯罪 __ 提交于 2019-12-28 12:00:32
问题 Environment: Windows Server 2008 Enterprise, IIS 7.0, ASP.NET 2.0 (CLR), .NET 4.0 I have an ASP.NET application with no page and no session( HttpHandler ). It a streaming server. I use two threads for processing each request so if there are 100 connected clients, then 200 threads are used. This is a dedicated server and there's no more application on the server. The problem is after 200 clients are connected (under stress testing) application refuses new clients, but if I increase the worker

What 130 second timeout is killing my WCF streaming service call?

时光毁灭记忆、已成空白 提交于 2019-12-28 11:54:46
问题 Just recently I started to investigate a tricky problem with WCF streaming in which a CommunicationException is produced if the client waits for any longer than 130 seconds in between sends to the server. Here is the full exception: System.ServiceModel.CommunicationException was unhandled by user code HResult=-2146233087 Message=The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying

How are IIS7 threads assigned?

穿精又带淫゛_ 提交于 2019-12-28 06:44:12
问题 I added log4net to my application and can now see the thread Ids of user activities as they navigate through my website. Is there any specific algorithm to how threads assignment happens with IIS7, or is it just a random number assignment (I suspect it's not completely random because my low traffic site show threads mostly in the range 10-30)? Any maximum to the number of threads available? And I notice that my scheduler shows up with a weird threads id -- any reason for this? The scheduler

asp.net site default document in subfolder

亡梦爱人 提交于 2019-12-28 06:31:07
问题 My default document is in subfolder not in root how can i make it default in asp.net 2.0 website. Tried iis7 default document setting to '/pages/default.aspx' '~/pages/default.aspx' but it didn't work. 回答1: Default document is not the same as start page. Default document means if I requested mysite.com/somefolder and didn't specify a file, which file should IIS display. If you want to use a specific page as your home page, create a Default.aspx file and write this in it's codebehind class: