Questions tagged [iis]

IIS is Internet Information Services, the web server included with Microsoft's Windows Server operating systems. This is a generic tag. Wherever possible please use a *version-specific* tag, such as [iis-7], [iis-7.5], etc.

IIS is Internet Information Services, the web server included with Microsoft's Windows and Windows Server operating systems.

This is a generic tag. Wherever possible please use a version-specific tag such as:

  • on Windows Server 2016 and Windows 10
  • on Windows Server 2012 R2 and Windows 8.1
  • on Windows Server 2012 and Windows 8
  • on Windows Server 2008 R2 and Windows 7
  • on Windows Server 2008 and Windows Vista
  • on Windows Server 2003 and Windows Server 2003 R2; Windows XP x64 Professional (END-OF-LIFE)
  • on Windows 2000 and Windows XP Professional (END-OF-LIFE)

It is also recommended that you tag your questions with the appropriate windows-version tags.


IIS 7 and newer versions are built on a modular architecture, plugging in to the kernel-mode HTTP.SYS listener. User-mode Modules can be added or removed individually so that only modules required for specific functionality have to be installed.

IIS includes these module groups:

  • HTTP (request-processing pipeline, errors, redirects)
  • security
  • content
  • compression
  • caching
  • logging and diagnostics

The IIS Manager (INETMGR) is the IIS administrative GUI.

The command-line utility "AppCmd" provides a scriptable interface to the IIS configuration data.

The PowerShell WebAdministration module is included with IIS 7.5+.

The newer PowerShell IISAdministration module is included in IIS 10+. It is the only IIS PS Admin module supported on Nano server at the time of release.

5327 questions
15
votes
3 answers

How to change default application in a website in IIS 7.5 on Windows 7

When I pull up http://localhost in a web browser on my computer (Windows 7, IIS 7.5) I get the IIS 7 welcome image. I have a different website that is set up in IIS that I'd prefer to be the default web site. Can I change that setting somewhere in…
Mr. Jefferson
  • 697
  • 2
  • 11
  • 25
15
votes
2 answers

Why doesn't IIS 7.5 FTP respect the passive port range for plain ftp?

I struggled with the whole passive port range deal on IIS 7.0 tonight. I finally realized that it apparently only applies to FTP/ES or FTP/IS. When I try to do plain ftp, it assigns whatever the heck port number it wants when responding to a PORT…
Chris B. Behrens
  • 671
  • 1
  • 6
  • 12
15
votes
4 answers

Can we use wildcards with NETSH HTTP ADD URLACL in Windows 7 / 2008r2?

i'm using IIS7 express and therefore need to unblock port 80 if I wish to hit the website locally and on the default http port. To do this, i use .. netsh http add urlacl url=http://my.custom.locahost.domain.com:80/ user=mydomain\myusername is it…
Pure.Krome
  • 6,508
  • 18
  • 73
  • 87
15
votes
4 answers

HTTP Compression on IIS 6.0 (Windows Server 2003)

There are many things you have to do/consider when you want to enable HTTP compression on IIS 6.0 (Windows Server 2003). Can somebody please provide a comprehensive list of the actions you have to take in order to enable HTTP compression properly?
splattne
  • 28,508
  • 20
  • 98
  • 148
15
votes
4 answers

Properly handle IIS request with percent sign in url (/%)

I am looking for any kind of solution to properly get an IIS request such as https://stackoverflow.com/% and http://bing.com/% to not display a 400 Bad Request page, but display a custom error page similar to how http://google.com/% and…
bkaid
  • 211
  • 1
  • 2
  • 9
15
votes
3 answers

Do you use performance counters on production IIS web sites?

Do you keep the counter ON during heavy production loads Which performance counters do you find useful for ASP.Net/IIS 6.0 websites?
Kb.
  • 285
  • 1
  • 2
  • 8
15
votes
5 answers

How do you do production IIS website depoys?

So, not sure if this is a Stack Overflow or a Server Fault question. If I have a .NET website that I want to deploy to the production environment, what's the best way to do so. Should I package it as an MSI & install? Use nant to push the needed…
Glenn Slaven
  • 2,400
  • 2
  • 30
  • 42
15
votes
6 answers

Who is responsible for maintaining IIS for web apps?

IIS/Web Applications has been a tricky issue in the shops I've worked in over time. On one hand, IIS is a service built into the server (by in large) and is typically the responsibility of the server administrators to maintain and configure. When an…
Dillie-O
  • 521
  • 8
  • 15
15
votes
8 answers

Can I configure the Windows hosts file to use IP address plus port?

I want to configure the Windows hosts file to send host requests based on IP address + ports. For example: 127.0.0.1:80 www.site1.com 127.0.0.1:8080 www.sitetwo.com Because I have Apache listening on port 8080 and IIS on port 80…
SIA
14
votes
3 answers

Remove IIS from Win2008 R2 -- side effects?

This might be an overly broad question, but I can't find a good answer when using search engines... I have a few servers that will be providing web-based services via apps that are not IIS. While I can disable IIS, I wondered if I could (should?)…
14
votes
2 answers

IIS logs show sc-win32-status=64 but only through some networks

I have an ASP.NET application running on a client server (W2k3, IIS6, .NET 2.0). FWIW, this is a Test instance, it hasn't been moved into Production yet. So it is not running under SSL, load balancing, etc. When I access one of the pages on their…
wweicker
  • 505
  • 2
  • 4
  • 13
14
votes
4 answers

Is it considered a best practice to delete the DefaultWebSite and App Pools from IIS?

Does Microsoft recommend deleting and cleaning up the Default Web Site instance and extra Application Pools from production web servers?
Eric Falsken
  • 647
  • 2
  • 8
  • 21
14
votes
1 answer

Load-Balanced IIS 7.5 Web Server ASP.NET Session State problem

we have a problem with an ASP.NET website where the users' sessions are behaving oddly - session data appearing, disappearing and re-appearing. I think I know what the problem is: Our setup is 2 x Load balanced WebServers + single session state…
James McCormack
  • 243
  • 1
  • 2
  • 7
14
votes
3 answers

Block Bots with IIS 7.5 and 8.0

I would like to block a bot with IIS. With Apache you can add a command to your .htaccess file, as outlined here. How would I accomplish this with IIS 7.5? Update In addition to answer below, there are a total of approaches I discovered since…
Josh
  • 651
  • 2
  • 6
  • 15