Internet Information Services (Iis)

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 47

INTERNET INFORMATION SERVICES (IIS)

Question 1 : Install the role of IIS


Question 2 : To create a website “megaservice” sur IIS
Boot file for the website is index.htm
The site will response on URL “test.megaservice.com” on port 81 (local)
The website logs will be stored in “d:\logs\megaservice\WSC****”

Question 3 : Practice on Megaservice


Configure the site to function on https
Create an application pool for the dedicated site.
Create a user “usr_megaservice” to function the website in anonymous with rights of NTFS
Place a personalised page 404 for the website

Question 4 : More Practice on website


Create a site “mega-clone” by using the files of the website megaservice
The site will response on URL “clone.mega.com”
Make a redirection from the website to the site “www.linkbynet.com”
Create a backup for the configuration of IIS
Remove the site “mega-clone”
Restore the website “mega-clone” on IIS

Question 5 : More practice on megaservice website :


URL Rewriting
Request Filtering

Question 6 : Explain the difference between “classic mode” and “integrated mode” in Application Pool
Question 7 : Name the version of SSL
Question 8 : Explain the function of Public key and Private key encryption
Question 9 : Explain the function of a digital certificate
Question 10 : List the steps for configuring an SSL certificate on a website under IIS6
Question 11 : List 2 modules on IIS7 and their corresponding configuration on IIS6.
Question 12 : Explain the difference between Native and Managed Module.
Question 13 : With the website “megaservice”, provide an error page “service unavailable”.
Question 14 : Explain the mechanism of recycling of Application Pool.

Question 15 : By using the command appcmd :


Create a website “mega-clone2” with the files of the website “megaservice”
The website will response on URL “clone2.mega.com
The boot file will be index.htm
Create an Application Pool “mega-clone2” for this website.
Take a backup for the configuration of IIS
Remove the website “mega-clone2”
Restore the website on IIS

Question 16 : Install last version of Apache


Load the website test.megaservice.com on Apache
Configure virtual host “test2.megaservice.com” on Apache

Question 17 : Install FTP Filezilla


Create a user to provide update to the website megaservice
Test the access for the FTP
Provide the right for that user the ability to read and create folder
Provide the right for that user the ability to read and copy files from the website
Configure FTPS
Configure disk Quota
Question 1 : Install the role of IIS

Notes :

1. Go to Server Manager
2. Add roles and features
3. Select IIS
4. Install
5. Open browser and type localhost
Question 2 :
2a) To create a website “megaservice” on IIS
2b) Boot file for the website is index.htm
2c) The site will response on URL “test.megaservice.com” on port 81 (local)
2d) The website logs will be stored in “d:\logs\megaservice\WSC****”

2a) To create a website “megaservice” on IIS


2b) Boot file for the website is index.htm
2c) 2c) The site will response on URL “test.megaservice.com” on port 81 (local)
2d) The website logs will be stored in “d:\logs\megaservice\WSC****”
Question 3 : Practice on Megaservice
3a) Configure the site to function on https
3b) Create an application pool for the dedicated site.
3c) Create a user planned to function the website in anonymous with rights of NTFS
3d) Place a personalised page 404 for the website

3a) Configure the site to function on https


3b) Create an application pool for the dedicated site.
3c) Create a user “usr_megaservice” planned to function the website in anonymous with rights of NTFS
Add the user to group IIS_IUSRS
3d) Place a personalised page 404 for the website
Question 4 : More Practice on website
4a) Create a site “mega-clone” by using the files of the website megaservice
4b) The site will response on URL “clone.mega.com”
4c) Make a redirection from the website to the site “www.linkbynet.com”
4d) Create a backup for the configuration of IIS
4e) Remove the site “mega-clone”
4f) Restore the website “mega-clone” on IIS

4a) Create a site “mega-clone” by using the files of the website megaservice

4b) The site will response on URL “clone.mega.com”


4c) Make a redirection from the website to the site “www.linkbynet.com”
4d) Create a backup for the configuration of IIS
Type the command :
Cd\
c:\windows\system32\inetsrv
appcmd add backup “IIS_Backup_14-04-2017”
4e) Remove the site “mega-clone”
4f) Restore the website “mega-clone” on IIS

1. Close IIS
2. Restore IIS

DOS Command :

Cd\
C:\windows\system32\inetsrv
Appcmd list backups
Appcmd restore backup “IIS_backup_14-04-2017”

Open IIS and the restore is successful


Question 5 : More practice on megaservice website :
5a) URL Rewriting
5b) Request Filtering

5a) URL Rewriting


5b) Request Filtering
Question 6 : Explain the difference between “classic mode” and “integrated mode” in Application Pool

Classic mode

It maintains backward compatibility with earlier versions of IIS by using an ISAPI extension to invoke the
ASP.NET rutime.

Integrated Mode

Integrated mode is a new mode in IIS7 where IIS pipeline is tightly integrated (i.e is just the same) as
ASP.NET request pipeline. Because ASP.NET is no longer treated as an external plugin. It is completely
blended and integrated in IIS.

Question 7 : Name the version of SSL

SSL is a standard security technology for establishing an encrypted link between a server and a client. SSL
allows sensitive information such as credit card numbers, social security numbers and login credentials to
be transmitted securely. SSL is a security Protocol and use SSL handshake to establish connection. The last
version of SSL is V3.

Question 8 : Explain the function of Public key and Private key encryption

The public and private key pair comprise of two uniquely related cryptographic keys. The public key is as its
name suggest is made available to everyone. The private key remain confidential to its respective owner.
Both keys are needed to decrypt the encrypted data before use.

Question 9 : Explain the function of a digital certificate

Digital Certificates are a means which consumers and businesses use for security applications of Public Key
Infrastructure (PKI). PKI comprises of the technology to enables secure e-commerce and internet based
communication.

Digital certificates provide security like


identification and authentication : indentification of the person communicating.
Confidentiality : the message is kept confidential.
integrity : the message is not tampered while transmission
non repudiation : the sender and receiver cannot deny acknowledgement of the message
Access Control : Access to the message is only to the intended person.
Question 10 : List the steps for configuring an SSL certificate on a website under IIS6

To install SSL Certificate on IIS6 :


Open IIS 6
Browse to the website you need to install SSL
Right Click and choose properties
Click the tab Directory Security -> select server certificate
run the IIS certificate wizard
select process the pending request and install the certificate
enter the path or location of the pending certificate
Give SSL port : 443
Complete the wizard by clicking finish

Question 11 : List 2 modules on IIS7 and their corresponding configuration on IIS6.

IIS6 Bindings
open IIS6\select the website you want to configure\r/click properties
click the tab website and click advanced (next to ip address)
in the advanced website identification -> click add to add port to the website and ssl settings

IIS7 Bindings
Open IIS7\select the website you want to configure, click on bindings on the right
click add to add port to the website

IIS6 - Application Pool


Open IIS6\choose Application Pool-> R/click New application Pool
In Application Pool ID , type a name
Select use default settings for new application pool and clik ok
R/Click on (created name) and select properties
Go to the identity tab and click predefined
select local system
Click apply and ok

Directing App Pool to use (created name) website


R/click on (created Name) and select properties
Go to Home Directory tab and click remove
Click create and in Application Pool list box, select (created name) and apply
Go to the Directory Security and Under authentication and access, click Edit
change IUSR_username to administrator account and select enable anonymous access
Click ok to re-enter password for admin and click OK and restart web service

IIS7 - Application Pool


Open IIS7\choose Application Pool->R/click and choose add new application Pool
Type name (Created Name), on Managed pipeline field, choose classic
Tick start App Pool immediately, Click OK
In App Pool, select (created Name) and click advanced settings in right pane
Go the proces module section and on the identity field change value from network service to localsystem
and click ok
Using new created App Pool (created Name)
Select the website and locate the virtual directory and advanced setting in right pane
Go to the General section and on App Pool, click browse and select App Pool (created name)
Question 12 : Explain the difference between Native and Managed Module.

Native code

It is written in the "native"machine language of the computer that it is running on and is executed directly
by the processor. Any portability to another OS/instruction set is lost and must be recompiled to execute.
eg. C and C++ are native.

Managed Code

It is written in a special language that requires another program to run it. This other program is often called
an interpreter as it interprets the special language. Eg. Java and C# and .NET are all managed.

Question 13 : With the website “megaservice”, provide an error page “service unavailable”.

The result will be http error 503 service unavailable


Question 14 : Explain the mechanism of recycling of Application Pool.

An Application Pool is a mechanism used by IIS to isolate web applications, allowing you to have different
configurations.

Recycling means the worker process that handles requests for that application pool is terminated and a
new one started. This is generally done to avoid unstable states that can lead to application crashes, hangs,
or memory leaks.

Configure automatic application pool recycling :

open IIS and click on Application Pools


The wizard will first asked for settings and second the log events when they are triggered.
Question 15 : By using the command appcmd :
15a) Create a website “mega-clone2” with the files of the website “megaservice”
15b) The website will response on URL “clone2.mega.com
15c) The boot file will be index.htm
15d) Create an Application Pool “mega-clone2” for this website.
15e) Take a backup for the configuration of IIS
15f) Remove the website “mega-clone2”
15g) Restore the website on IIS

15a) Create a website “mega-clone2” with the files of the website “megaservice”

Appcmd.exe is the single command line tool for managing IIS7 and above. It exposes all key server
management functionality through a set of management objects that can be manipulated from the
command line. It is found in %systemroot%\system32\inetsrv\directory.

Appcmd can be used for :


Create and configure sites, apps, application pools and virtual directory
start and stop sites and recycle application pools
list running work process and examine executing requests
search, manipulate, export and import IIS and ASP.NET configuration

To create a website :

appcmd add site /name:mega-clone2 /bindings:http/*:80:clone2.mega.com


/physicalpath:d:\clients\www.megaservice.com\fichiers

15b) The website will response on URL “clone2.mega.com


15c) The boot file will be index.htm
15d) Create an Application Pool “mega-clone2” for this website.

15e) Take a backup for the configuration of IIS

DOS Command :

Cd\
C:\windows\system32\inetsrv
Appcmd add backup“IIS_backup_14-04-2017-2”

15f) Remove the website “mega-clone2”


15g) Restore the website on IIS

1. Close IIS
2. Restore IIS

DOS Command :

Cd\
C:\windows\system32\inetsrv
Appcmd list backups
Appcmd restore backup “IIS_backup_14-04-2017-02”
Question 16 : 16a) Install last version of Apache
16b) Load the website test.megaservice.com on Apache
16c) Configure virtual host “test2.megaservice.com” on Apache

16a) Install last version of Apache


16b) Load the website test.megaservice.com on Apache
16c) Configure virtual host “test2.megaservice.com” on Apache
Question 17 :

17a) Install FTP Filezilla


17b) Create a user to provide update to the website megaservice
17c) Test the access for the FTP
17d) Provide the right for that user the ability to read and create folder
17e) Provide the right for that user the ability to read and copy files from the website
17f) Configure FTPS
18f) Configure disk Quota

17a) Install FTP Filezilla

Check to ensure that FTP server is installed on the lab

Download filezilla from the website


17b) Create a user to provide update to the website megaservice
17c) Test the access for the FTP
17d) Provide the right for that user the ability to read and create folder
17e) Provide the right for that user the ability to read and copy files from the website

17f) Configure FTPS


18f) Configure disk Quota

File Server Resource Manager

You might also like