You are on page 1of 19

GUIDE MANUAL

FOR INTERNET INFORMATION SERVICES (IIS)


SERVER CONFIGURATION

9325B
1:00-2:30 W.S.

De Ayre, Seanne Nielsen A.


Chinayog, Klint B.
Gonzaga, Dominic C.
Ragsac, John Yves B.
Mejia, Rapha Lynne L.
Tungcul, Camille S.
TABLE OF CONTENTS

I. Introduction..................................................................................................................1
What is IIS?............................................................................................................1

II. Enabling IIS..................................................................................................................1

III. Virtual Hosts.................................................................................................................3


A. Setup........................................................................................................................3
B. Compression...........................................................................................................6
C. Cache........................................................................................................................8
D. Content Negotiation..............................................................................................9
E. Site Access.............................................................................................................13
F. SSL..........................................................................................................................16
I. Introduction

What is IIS?

Internet Information Services (IIS) is an extensible web server created by


Microsoft for use with the Windows NT family. IIS supports HTTP, HTTP/2,
HTTPS, FTP, FTPS, SMTP and NNTP.
(https://en.wikipedia.org/wiki/Internet_Information_Services)

II. Enabling IIS

1. Open Control Panel by clicking the start button and type Control
Panel then open it.

2. Click Programs and Features

3. Click on Turn Windows features on or off on the left side pane.

1
4. Find the Internet Information Services in the Windows Features
dialogue. Click the + icon in front of it to expand all available options under
it. You can find FTP Server, Web Management Tools and World Wide Web
Services.

5. Put a check mark on the IIS Management Console. Then click OK to


save and apply changes.

6. To check if have already enabled IIS click on start and type Internet
Information Services and launch the application.

2
III. Virtual Hosts

A. Setup

1. To add a new website, click your pc name then right click the folder named site then
click the add website.

2. A window pane will pop-up and you are required to fill up all the necessary
information for you to add your site.

3
3. As you notice your website is already added and to make it work and functional you
need to configure it. Make sure that you enable the directory browsing.

4
4. Then the index.html must be the first on the list to improve its performance.

5. Edit the host file of the host machine and put there the ip address and the domain
name of your website.

6. Refresh it and try to run your site in the web.

5
7. If the set-up is successful, your website must run correctly.

B. Compression

Configure the virtual hosts to enable serving up compressed content to clients that
are able to handle the compressed encoding. Limit the compression to HTML and
CSS files only.

1. Go to control panel again.

2. Click Programs and Features.

3. Click on Turn Windows features on or off on the left side pane.

4. Then enable the performance feature which you can find the content
compression features.

6
5. Go back to the IIS manager. Select and double click the compression icon.
And enable the content compression.

7
C. Cache

Configure the virtual hosts to enable clients to cache PNG, JPG, and GIF files for
up to 24 hours from the time they are accessed.

1. Go to the IIS manager. Select and double click the output caching icon.
Then add some cache rules.

2. Edit the cache rule by placing the file name extension and its parameters.
Then click OK to apply.

8
D. Content Negotiation

1. We navigate to C:\inetpub\wwwroot and create a new folder “content”

9
2. Inside the folder, create two files: content.html and content.txt

3. Go to www.iis.net/downloads/microsoft/url-rewrite and install the extension

4. Select URL Rewrite then select user friendly

10
5. Then add rules

6. Then select MIME Types

7. Type “.en” for the file name extension.

8. Add another mime type for “fil”

11
9. Go back again to URL Rewrite the add rules, then type the following:
“webtech2.negotiate.org/language.html.en”

10. The website after the configuration.

12
E. Site Access
1.Create a virtual host mapped to the domain name webtech2.access.org.

2. Search feature from the start menu and open “Turn Windows features on or off” as
presented below. Under “Internet Information Services” > ”World Wide Web Services” >
“Security” > choode “Basic Authentication” and “Request Filtering” then click OK.

3. On the IIS Manager, select “Authentication” and enable “Basic Authentication”. Click
“Edit...” from the Actions pane. Type “.edu” or “.org” on the Default domain section and
click “OK” when done.

13
4. On authentication, edit the basic authentication settings and add the default domains.

5. Enable Windows Features

6. Go back to our IIS Manager and open .NET Authorization Rules

14
8. Copy the configuration below when editing the allow authorization rule

9. Create a new website

10. Open Handler Mappings

11. Add Module Mapping

15
G. SSL
1. We open our IIS Manager, then we click our server on the left pane and open Server
Certificates.

2. Then we create a certificate request, with the following values

3. Click Next

16
4. Input a file name

5. Go to http://www.openssl.org and download ssl


6. Extract the files
7. Open a CMD prompt and cd to the OpenSSL directory (default is C:\OpenSSL\bin)
8. Run this command in cmd “ openssl genrsa -out rmw8app.key 2048”
9. Run this command in cmd “openssl req -new -key rmw8app.key -out rmw8app.csr –
config ./openssl.cnf”
10. Run this command in cmd openssl pkcs12 -inkey rmw8app.key -in rmw8app.cer –export
–out rmw8app.pfx
11. Click Start > Run > Type “MMC” and click OK.
12. Then click File > Add/ Remove Snap-in
13. Select “Certificates” click “Add >”, select “Computer account” and then click Finish,
click Next and then click OK. Then expand personal folder.
14. Right click on “Certificates” sub folder and choose “All Tasks > Import”.
15. Select the .PFX file that was either given to you by the Root CA or that you created with
OpenSSL.
16. Copy the thumbprint information to a notepad window and remove all of the spaces
from the certificate.
17. Open CMD again and enter “Netsh http add sslcert ipport=0.0.0.0:443 certhash=
c01df4613b78b581c8fc428e105c6ecbfd76c1c5 appid={28e89a9f-e67d-3028-aa1b-
e5ebcde6f3c8}”
18. Restart the control service.

17

You might also like