IIS
IIS
IIS
6) Can I run multiple websites with same port number and different IP address?
Q: How can I configure IIS to run multiple websites on the same IP?
There are three, count 'em three ways to create multiple websites on IIS 4 and 5. First way is to use an unique IP
for each site. This is ideal but if you haven't looked around lately, IP addresses can be sorta scarce (that is of
course unless your Harley Davidson or Apple both of whom own a Class A address).
The second way allows you to create multiple IP's on one address by designating a non-standard TCP port number
for the designated web to use. This is the way the Administrative website winds up on the same installation as the
default website and both can be accessed. However, you have to designate the unique port number in the URL
when accessing it. So instead of www.myvirtualsite.com, it becomes www.myvirtualsite.com:6160 or some other
number. You can include the port number in a url so it's really not problem for web pages to reference port
designated web sites. The problem is that you can's specify a port in a DNS server so if users want to lookup your
website, they won't be able to get to it.
Thus we come the next best thing, host headers.
The good news is this is relatively easy to do in IIS and it works very well. There is virtually no performance
penalty and it works with most every browser in use today (browsers must be HTTP 1.1 compliant). You can use
DNS to point to the website so internet users can find your host header designate site with no problems. You do
have to pay attention to the details however or it won't work. The biggest downside is that you compromised using
Page 1 of 20
IIS
9) port no of FTP
Port no 21 is used for ftp.
Page 2 of 20
IIS
14) How many authentications are done on IIS? Port numbers for HTTP? How do you take backups of IIS
Servers...Authentication types in IIS
1.Anonymous Authentication 2.Basic Authentication 3.Digest Authentication 4.Advance Digest Authentication
5.Integrated Windows Authentication 6.UNC Authentication 7. .NET Passport Authentication
8.FTP Site Authentication
HTTP Port number 80
1. In the IIS snap-in on the local computer, click the
Computer icon under Internet Information Services.
2. Click Action and select Backup/Restore Configuration.
3. Click Create backup, choose a name for your backup file,
and then click OK
Page 3 of 20
IIS
25) What are webservices, its attributes. Where they are available ?
Web services are self-contained, modular applications that can be described, published, located, and invoked over
a network. Web services could be weather reports or stock quotes. Transaction Web services, supporting business-
to-business (B2B) or business-to-client (B2C) operations.The Web services architecture describes three roles:
1.Service provider 2.Service requester 3.Service broker
Web services components provide three basic operations: 1.Publish 2.Find 3.Bind
29) What is App Pool and App Domain? What is the difference between the two.
An application pool is a group of one or more URLs of different Web applications and Web sites. Any Web
directory or virtual directory can be assigned to an application pool.Every application within an application pool
shares the same worker process executable, W3wp.exe, the worker process that services one application pool is
separated from the worker process that services another [Like starting MS Word and opening many word
documents]. Each separate worker process provides a process boundary so that when an application is
assigned to one application pool, problems in other application pools do not affect the application. This
ensures that if a worker process fails, it does not affect the applications running in other application pools. [i.e]
for Eg., If word document is having issue it should not logically affect your Excel Sheet isn’t it. application
domain is a mechanism (similar to a process in an operating system) used to isolate executed software applications
from one another so that they do not affect each other. [i.e] opening of MS WORD doesn’t affect MS EXCEL
you can open and close both the applications any time since there is no dependency between the applications.
Each application domain has its own virtual address space which scopes the resources for the application domain
using that address space.
Page 4 of 20
IIS
create new vertual directory / create new webside in directory / give the path for webside / set port and security
31) In IIS Version 6.0 Through application pool we can provide different -2 applications for the client. Is it right?
If yes then how to provide the application to the client and what kind of application it can be ?
If you are running your IIS server with 2 different versions of framework(1.1 & 2.0)you can create 2 different
application pools and point your application to the required framework you want to run.
Page 5 of 20
IIS
Page 6 of 20
IIS
Page 7 of 20
IIS
54) What is presentation layer responsible for in the OSI model? The presentation layer establishes the data
format prior to passing it along to the network application’s interface. TCP/IP networks perform this task at the
application layer.
55) Does Windows Server 2003 support IPv6? Yes, run ipv6.exe from command line to disable it.
56)Can Windows Server 2003 function as a bridge? Yes, and it’s a new feature for the 2003 product. You can
combine several networks and devices connected via several adapters by enabling IP routing.
57) What’s the difference between the basic disk and dynamic disk? The basic type contains partitions,
extended partitions, logical drivers, and an assortment of static volumes; the dynamic type does not use partitions
but dynamically manages volumes and provides advanced storage options
58) What’s a media pool? It is any compilation of disks or tapes with the same administrative properties.
59) How do you install recovery console? C:\i386\win32 /cmdcons, assuming that your Win server installation is
on drive C.
60) What’s new in Terminal Services for Windows 2003 Server? Supports audio transmissions as well,
although prepare for heavy network load.
61) What scripts ship with IIS 6.0? iisweb.vsb to create, delete, start, stop, and list Web sites, iisftp.vsb to create,
delete, start, stop, and list FTP sites, iisdir.vsb to create, delete, start, stop, and display virtual directories,
iisftpdr.vsb to create, delete, start, stop, and display virtual directories under an FTP root, iiscnfg.vbs to export and
import IIS configuration to an XML file.
62) What’s the name of the user who connects to the Web site anonymously? IUSR_computername
63) What secure authentication and encryption mechanisms are supported by IIS 6.0? Basic authentication,
Digest authentication, Advanced digest authentication, Certificate-based Web transactions that use PKCS
#7/PKCS #10, Fortezza, SSL, Server-Gated Cryptography, Transport Layer Security
Page 8 of 20
IIS
64) What’s the relation between SSL and TLS? Transport Layer Security (TLS) extends SSL by providing
cryptographic authentication.
65) What’s the role of http.sys in IIS? It is the point of contact for all incoming HTTP requests. It listens for
requests and queues them until they are all processed, no more queues are available, or the Web server is shut
down.
66) Where’s ASP cache located on IIS 6.0? On disk, as opposed to memory, as it used to be in IIS 5.
67) What is socket pooling? Non-blocking socket usage, introduced in IIS 6.0. More than one application can use
a given socket.
68) Describe the process of clustering with Windows 2003 Server when a new node is added. As a node goes
online, it searches for other nodes to join by polling the designated internal network. In this way, all nodes are
notified of the new node’s existence. If other nodes cannot be found on a preexisting cluster, the new node takes
control of the quorum resources residing on the shared disk that contains state and configuration data.
69) What applications are not capable of performing in Windows 2003 Server clusters? The ones written
exclusively for NetBEUI and IPX.
70) What’s a heartbeat? Communication processes between the nodes designed to ensure node’s health.
71) What’s a threshold in clustered environment? The number of times a restart is attempted, when the node
fails.
72) You need to change and admin password on a clustered Windows box, but that requires rebooting the
cluster, doesn’t it? No, it doesn’t. In 2003 environment you can do that via cluster.exe utility which does not
require rebooting the entire cluster.
73) For the document of size 1 MB, what size would you expect the index to be with Indexing Service? 150-
300 KB, 15-30% is a reasonable expectation.
74) Doesn’t the Indexing Service introduce a security flaw when allowing access to the index? No, because
users can only view the indices of documents and folders that they have permissions for.
75) What’s the typical size of the index? Less then 100K documents - up to 128 MB. More than that - 256+ MB.
76) Which characters should be enclosed in quotes when searching the index? &, @, $, #, ^, ( ), and |.
77) How would you search for C++? Just enter C++, since + is not a special character (and neither is C).
80) What’s the order of precedence of Boolean operators in Microsoft Windows 2003 Server Indexing
Service? NOT, AND, NEAR, OR.
81) What’s a vector space query? A multiple-word query where the weight can be assigned to each of the search
words. For example, if you want to fight information on ‘black hole’, but would prefer to give more weight to the
word hole, you can enter black[1] hole[20] into the search window.
82) What’s a response queue? It’s the message queue that holds response messages sent from the receiving
application to the sender.
83) What’s MQPing used for? Testing Microsoft Message Queue services between the nodes on a network.
84) Which add-on package for Windows 2003 Server would you use to monitor the installed software and
license compliance? SMS (System Management Server).
85) Which service do you use to set up various alerts? MOM (Microsoft Operations Manager).
86) What languages does Windows Scripting Host support? VB, VBScript, JScript.
Page 9 of 20
IIS
87 )What is the latest version of IIS released with Windows 7 IIS 7.5
88) From where you can change the ASP.NET Version in IIS ?
This can be change from Virtual Directory properties. First open Properties of Virtual Directory > GoTo
ASP.NET Version Tab. There we can have change the ASP.NET Version.
What are the different "Execution Permission" available for IIS for an virtual directory ?
There are three Execution Permission available.
1. None 2. Scripts Only 3. Scripts and Executable
What are the different way that we can hosted site on IIS ?
We can hosted site on IIS either creating Virtual Directory through IIS manager or Using Folder Web Sharing .
Apart from that Visual studio provide some inbuilt features to host the site on IIS like using Publishing the web
site , Using Copy web Tool or Creating Virtual directory during the creating the project by choosing Location as
HTTP
Is there any alternative way to host site on IIS rather than opening IIS Manager ?
Yes, We can directly host any site from the physical location of directory itself.
Right Click on Physical Folder > Properties > Web Sharing
There you need to select > "Share This Folder" Option Button. Then it will ask for alias name and other setting.
Then Click on OK.
To Validate : Run > Inetmgr > Check there should an virtual directory with the same "Alias" name that you have
given.
If there are already one Virtual directory exist it will showing you the error message while you providing the
"Alias" name.
How can we set the default page for any web application ?
We can set the default page for a web site from the Virtual Directory Setting.
How To : IIS Manager > Virtual Directory > Right Click > Properties > GoTo Document Tab.
Page 10 of 20
IIS
What are the worker process for IIS 5.1 and IIS 6.0 ?
For IIS 5.1 > aspnet_wp.exe
For IIS 6.0 > w3wp.exe
What are the different type of application pool available in IIS 7.0 ?
IIS 7.0 having two types of application pool.
1. DefaultAppPool (Integrated)
2. ClassicAppPool
If there are multiple worker process running on IIS, then how can you attach a particular worker process for
application ?
Well, If there are multiple worker process running in IIS, it means I have to know the name of my application
pool. Then I can run cscript iisapi.vbs script to find out the process ID and Application Pool name . Based on the
process Id for particular application I have to attache the process from Visual studio IDE.
Page 11 of 20
IIS
How can we get the list of worker process running in IIS along with the Application pool name ?
By running iisapp.vbs script from command Prompt.
Below are the steps :
1. Start > Run > Cmd 2. Go To Windows > System32 3. Run cscript iisapp.vbs
What are the different authentication mode available for IIS Remote Debugging ?
For IIS Remote Debugging msvsmon supported two authentication mode
1. Windows Authentication 2. No-Authentication
What are the permission settings are available for Virtual Directory ?
Below are the list of permission that can be set during virtaul directory creation
1. Read 2. Run Scripts 3. Execute: 4. Write: 5. Browse
Page 12 of 20
IIS
Page 13 of 20
IIS
What are the different version on IIS that you have worked on ?
Before answering this question you need to know what are the different IIS version is available in different OS.
Below is the list of IIS version with different Operating system.
Windows Server 2008 - Windows Vista - Home Premium/ Ultimate - IIS 7.0
Windows Server 2003 - IIS 6.0
Windows XP Professional - IIS 5.1
Now based on your working experience you can say that you have worked on IIS 5.1 and 6.0 or only IIS 7. Etc.
Page 14 of 20
IIS
Click Start, Administrative Tools, Performance, and then expand Performance Logs And Alerts.
Task Manager: If you want to view all applications and processes running on a Windows Server 2003 computer,
and view a few common performance measures, you should use Task Manager. You can Task Manager to view
system activities such as active applications and processes, memory and CPU usage of processes, and the users
who are currently logged on to the server. You can also view a number of memory and network usage statistical
information.
To open Task Manager, use of the methods listed below:
Click Start, Run, enter taskmgr.exe in the Run box, and click OK.
Press Ctrl + Alt + Delete and select the Task Manager button.
Right-click an empty section of the taskbar, and then click Task Manager.
Network Monitor: You can use Network Monitor to monitor network traffic, and to troubleshoot network issues
or problems. You can also use Network Monitor to gather network information that can be used in capacity
planning efforts, and to establish baselines. Network Monitor shipped with Windows Server 2003 allow you to
monitor network activity and use the gathered information to manage and optimize traffic, identify unnecessary
protocols, and to detect problems with network applications and services. In order to capture frames, you have to
install the Network Monitor application and the Network Monitor driver on the server where you are going to run
Network Monitor. Network Monitor saves captured data to a temporary capture file that you then save with a
Page 15 of 20
IIS
.CAP extension. This enables captured data to be examined in Network Monitor. You can design a capture filter to
capture only specific frames, or you can configure it to respond to a specific condition.
To install the Network Monitor Driver :
Click Start, click Control Panel, and click Add or Remove Programs
When the Add Or Remove Programs dialog box is displayed, click Add/Remove Windows Components
This initiates the Windows Component Wizard
Select Management and Monitoring Tool, and click the Details button
Select the Network Monitor Tools check box, and click OK
Click Next and Click Finish
Web Application Stress Tool (WAST): You can use WAST to simulate the following:
Simulate the effect of multiple web browsers concurrently connecting to IIS to run applications
Simulate the effect of multiple web browsers concurrently connecting to IIS to download Web content
Simulate different loads so that you can determine the effect on the Web server.
When monitoring Windows Server 2003 and IIS, it is recommended to monitor counters for the following system
resources, or objects:
Memory
Processor
Disk
Network
The performance counters that you should enable for the above system resources to monitor IIS performance are
listed below.
Memory: The counters useful for IIS monitoring are:
Available Bytes, maintain over 20MB.
Cache Bytes, a decrease could be indicative of IIS memory depleting
Committed Bytes, maintain beneath 75 percent of physical memory.
Page Faults/sec, consider adding additional RAM when hard page faults are degrading IIS performance.
Pages/sec, maintain a low figure. You should consider supplementing RAM when the counter is over 80.
Pool Nonpaged Bytes, if the counter gradually increases, verify that none of your applications have memory leaks.
Processor: The counters useful for IIS monitoring are:
% Processor Time, a processor bottleneck typically exists when this counter is over 80 for a continued time, and
network usage is low.
Disk: The counters useful for IIS monitoring are:
% Disk Time, it is recommended to maintain a low value for this counter.
Avg. Disk Bytes/Transfer, it is recommended to maintain a high value for this counter.
Avg. Disk Queue Length, it is recommended to have a value of 4 or lower.
Network: The counter useful for IIS monitoring are:
Bytes Total/sec, the value should be checked to the bandwidth of the network card to determine if any network
connection bottlenecks exist.
The performance counters of the WWW Service objects that you should enable to monitor the WWW service are
listed below.
WWW Service: The counters useful for IIS monitoring are:
Bytes Total/sec, the counter value should be high
File Cache Hits, for static content, the counter value should be quite high.
File Cache %, a low counter value could possibly mean that you have to re-examine the design of your
applications.
ISAPI Extension, a drop of this counter during heavy load could mean that your application might be a bottleneck.
The performance counters of the Active Server Pages object that you should enable to monitor ASP are listed
below.
Active Server Pages: The counters useful for IIS monitoring are:
Requests/Sec, a drop of this counter during heavy load could mean that your applications might be a bottleneck.
Request Queued, maintain a low counter value
Request Wait Time, the counter value should generally be low.
Page 16 of 20
IIS
Page 17 of 20
IIS
Enable the checkbox under the CPU Monitoring section of the Performance tab, and specify the fitting setting
value. Specify the action that IIS should take when the specified CPU usage level is exceeded.
Enable the Web Garden feature by selecting a value greater than one in the Web Gardens area of the Performance
tab. A value of one indicates that the Web Garden feature is disabled.
Click OK.
How to configure Health Monitoring features
You can enable health monitoring for worker processes to determine whether they are functioning correctly.
Health monitoring is enabled by selecting the Enable Pinging checkbox on the Health tab of the Application
Pool's Properties window.
Rapid-fail protection is another IIS feature that enables you to detect when multiple worker processes associated
with an application pool are performing incorrectly. You enable rapid-fail protection by selecting the Enable
Rapid-Fail Protection checkbox on the Health tab of the Application Pool's Properties window. To configure the
feature, you would need to specify how many worker process failures need to occur, and in how many minutes;
before IIS shuts down the application pool which the worker processes are servicing.
You can also configure Startup Time Limit and Shutdown Time Limit settings on the Health tab for worker
processes that are not running as they should. The Startup Time Limit value indicates the time interval in which
another worker process should replace an unhealthy worker process. The Shutdown Time Limit value indicates
the time in which an unhealthy worker process can shut itself down, before IIS forcefully terminates it.
The Quality of Service (QoS) features of IIS
The various QoS features of IIS which you can enable and configure to tune IIS performance are listed below:
HTTP Keep-Alives: This feature allows you to maintain TCP connections between the Web server and a client for
a specified duration.
To enable or disable the HTTP Keep-Alives QoS feature,
Page 18 of 20
IIS
The properties of the metabase which affect IIS performance, and the performance of ASP.NET, ASP and ISAPI
applications which you can configure to tune IIS performance are:
AppAllowDebugging: This property should be set to False so as not to negatively impact application performance,
and should only be set to True on development servers. Enabling the AppAllowDebugging property results in IIS
application threads being serialized.
AspScriptEngineCacheMax: For websites that are large, it is recommended to increase the
AspScriptEngineCacheMax property's value to increase the number of scripting engines ASP caches in memory.
AspScriptFileCacheSize: It is strongly recommended to enable ASP caching to increase the performance of your
ASP applications.
AspQueueConnectionTestTime: It is recommended to set the value of this property to only a few seconds, to
compel the IIS server to verify that the client is indeed connected, prior to it servicing his/her request.
AspBufferingOn: This property should be set to False so that application output is saved prior to flushing to
clients.
CacheISAPI: This property should be set to True to improve performance by caching ISAPI extensions in
memory.
How to tune Registry settings to improve IIS performance
While the majority of IIS configuration information is stored in the metabase, there are still a few IIS settings
which are stored in the Registry. The Registry settings which you can tune to improve IIS performance are
discussed below.
The Registry settings located under HKLM\SYSTEM\CurrentControlSet\Services\ Inetinfo\Parameters are:
CacheSecurityDescriptor: Do not change the default value of 1 for this setting because it means that the caching of
security descriptors for file objects is enabled. This in turn quickens the retrieval of cached content when an
authentication method other than Anonymous access is utilized.
CheckCertRevocation: For production servers which are not being utilized for intranet environments, the
CheckCertRevocation setting's value should be 0 (disabled).
DisableMemoryCache: A setting of 0 enables static file caching.
ListenBackLog: Tune this setting's value according to the load of the server.
MaxCachedFileSize: Tune this setting's value according to whether or not your server is servicing clients with
large files (images or video clips)
MemCacheSize: If you set the value of the setting for the cache size, then IIS no longer controls the cache size
dynamically.
MaxPoolThreads: This setting determines the number of pool threads that can be created for each processor. It is
recommended to not set this value to more than 20.
MinFileBytesPerSec: Change the setting to limit the time in which the client has to receive a response.
ObjectCacheTTL: The value of this setting determines the time duration for which objects are stored in the static
file cache.
The Registry settings located in KLM\SYSTEM\CurrentControlSet\Services\HTTP\Parameters are:
UriMaxCacheMegabyteCount Through the value of this setting, you can tune the performance of Http.sys. A
default setting of 0 allows Http.sys to determine what memory the cache utilizes.
UriScavengerPeriod: This setting controls how often the URI cache scavenger removes stale entries. The default
value is 120 seconds.
The Registry setting located in HKLM\SYSTEM\CurrentControlSet\Services\ASP\Parameters is:
DisableLazyContentPropagation: It is recommended that the value of the DisableLazyContentPropagation key be
left at its default value of 0. This prevents the Web server from failing when a large quantity of content needs to be
updated.
The Registry setting located in HKLM\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters is:
UploadReadAhead: This setting determines how much request data IIS accepts prior to forwarding it to a
particular application. Increase this value according to the amount of RAM on the server.
Common Server Tuning Methods for Tuning the IIS machine
A few common methods that should be considered to tune the performance of the IIS machine:
Consider using a SMP-capable motherboard so that you can easily add a CPU if you need to improve processing
power.
If you are using Windows Server 2003, use its capability of effectively defragmenting NTFS drives to ensure that
the disk subsystem performs efficiently.
Consider setting a large enough fixed paging file size, and distributing the paging file over multiple drives. This
also assists in improving performance of the disk subsystem.
You should consider using a hardware RAID solution over software RAID. Software RAID solutions place an
additional burden on the processor subsystem.
If your Web servers host e-commerce sites, consider using Windows clustering and network load balancing
(NLB).
Page 19 of 20
IIS
The simplest method which can be used to improve the performance of your IIS machine is to add additional
RAM.
You should also maximize data throughput so that your RAM is being utilized efficiently. You enable Maximize
Data Throughput using Control Panel. A few benefits of enabling Maximize Data Throughput is SMP scalability
on multiprocessor machines, improved networking performance, and support for a larger amount of physical
memory
To enable Maximize Data Throughput,
Page 20 of 20