Bài giảng cấu hình iis
Trang 1TRƯỜNG DAI HOC SU’ PHAM KY THUAT NAM DINH
KHOA CONG NGHE THONG TIN
_ (HƯƠNG TRINH THUC TAP THIẾT lÊ-V§ Lậ : - NH UNG DUNG WEB
Giáo viên: Nguyễn Minh Đức
Bộ môn: Mạng máy tính
Trang 2Internet Information Service (IIS) ———
Cai dat Internet Information Service (IIS)
Câu hình IIS
¡_ Nguyễn Minh Đức - Khoa CNTT
Trang 3
fđ Add or Remove Programs
mm
b Currently installed programs: [] Show updates Sort by: ‘Name v |
Change or
Programs Windows Components Wizar d tarely
Windows Components 8/23/2004
tỳ T You can add or remove components of Windows XP 4
+ ae To add of remove 4 component, click the checkbox 4 shaded box means that only 78 36MB
im part of the component will be installed To see what's included in a component, click La emove Components:
Components ‘A L] g@$ Fax Services 38MB A
ipa C1] @ Indexing Service O0MB 7.22MB
@ đằD @B Intemet Explorer 0.0 MB 2.00MB
| 4 › Đ Internet lnfarmatlon 5ervices [|IS]
Set Program is! D M 2 Mananement and Manitnrina Tons 2nwn *
Defaults Description: Includes Web and FTP support, along with support for FrontPage :
Qo G transactions, Active Server Pages, and database connections 9.87MB
| Total disk space required: 82.7 MB
@s Space available on disk: 1027.7 MB 3.93MB
Ă8 G
j1 | < Back | Next > | Cancel | 0.86MB
j8! —
sếp 125E Runtime Environment 5.0 Size 71.77MB y
_
Ă_ Nguyễn Minh Đức - Khoa CNTT
Trang 4Câu hình IIS —_——s~— 2
@ Tén may - Host name va localhost
@ Home directory va (Default) Documents
@ Directory va Virtual Directory
E Kích chuột phải trên Default Web Site
E New Virtual Directory
E Đặt tên của Virtual Directory (Alias) — My1Site
E ễ Xác định thư mục qua chức nang Browse
E Đặt quyên cho Virtual Directory (Read va Run Scripts)
¡_ Nguyễn Minh Đức - Khoa CNTT
Trang 5Câu hình IIS —
›Š Internet lInformation Services
File Action View Help
ee |BB BSB › ø
N Internet Infor mation Services Computer
=) MINHDUC (local computer)
=|] Web Sites _ # @ Default Web Site +) FTP Sites
+) Sy Default SMTP Virtual Server
| Local | Version
8 MINHDUC (local computer) Yes IIS ¥5.1
¡_ Nguyễn Minh Đức - Khoa CNTT
Trang 6Câu hình IIS _a
>€ Internet Information Services
File Action View Help
e2 im 9: › mủ
Kế Internet Information Services Name | Path | Stab ^
=) MINHDUC KECEI GHINDUPN L@ Printers C:\MINDOWS\webtpr inters
=) 1] Web Sites SS TKweB CAJnetpubìwwwroottbaithuchanh
(9 FIP Sit plore S |
> Open tsweb CAWINDOWS \web\tsweb
Brow/se Tracnghiem D:\Du lieu\Web_Tramghiem
£8 ASPComputer D:\Luan Van\LV ASP\ASPComputer Start Diendan D‘\Du lieu\Du lieu WEB\Diendan
Stop L@llSHelp c:\windows\help\iishelp ¬
Pause oa Book Shop D:\\Du lieu\Book Shop
New > \eb_Detai H:\\WWeb_Detai All tacks op Ve? D:\Du lieu\Du lieu WEB\HoaiAn4a
LQ) baithuchanh
View > C] vi _pv†t Rename Printer
Refresh 3] help.git `
Export List 9] lisstart.asp
— 7 - 9 localstart.asp
9] pagerror.gif
a" ˆ [a mie ke ee `
< II] Tar < m ee Opens property sheet for the qurrent selection
¡_ Nguyễn Minh Đức - Khoa C NTT
Trang 7
Default Web Site Properties leg
Directory Security | HTTPHeaders | CustomEnors | ServerExtensions
Web Site | ISAPI Filters | | HomeDirectoy | Documents -
Web Site Identification
Description: | Default Web Site
IP Address: 192.168.0.1 v (| Adyanced |
_
Connections Connection Timeout: | 300 seconds
HTTP Keep-Alives Enabled
Enable Logging
Active log format:
'W3E Extended Log File Format v | | Properties |
| Ok | Cancel | Apply
¡_ Nguyễn Minh Đức - Khoa CNTT
Trang 8Câu hình IIS —
Default Web Site Properties
Directory Security = HTTPHeaders CustomErors | Server Extensions
| WebSite | ISAPIFilters | HomeDirectoy =| Documents |
When connecting to this resource, the content should come from:
@)'A directory located on this computer
©) & share located on another computer
©) A redirection to a URL
Local Path: c \Inetpub\wwwroot ( Browse | ) Script source access Log visits IE V4 Read Index this resource
Directory browsing
Browse dé
„ „ Application name: Default Application | Remove |
mục ữn g VỢI Starting point: <Default Web Site>
Home | Configuration |
Execute Permissions: | Scripts only v
Directory
Application Protection: | Medium (Pooled) v | Unload
| oK || Cancel | Apply
¡_ Nguyễn Minh Đức - Khoa CNTT
Trang 9
Default Web Site Properties
| Directory Security | HTTPHeaders | CustomEnors | ServerExtensions |
WebSite | ISAPIFilters | HomeDirectoy | — Documents
[V] ‘Enable Default Document
Default htm
t Default asp index.htm
I isstart asp Remove
[| Enable Document Footer
B rOtwuse
OK Cancel Apply | Help |
¡_ Nguyễn Minh Đức - Khoa CNTT |
Trang 10
Câu hình IIS
:£ Internet Information Services
File Action View Help
Internet Information Services Name | Path | Stab «
=|) Web Sites 8S TKWEB CAJInetpub\wwwroottbaithuchanh
rf Default Weh Site Scipts CAInetpub\Saipts
a rete Sen tsweb CAWINDOWS \web\tsweb
Browse Tram@ghiem D:\Du lieu\Web_Tramghiem
ASPComputer D:\Luan Van\L¥ ASP\ASPComputer Start Diendan D:\Du lieu\Du lieu WEBDiendan
Stop IISHelp c:\windows\help\iishelp 3
Pause D:\Du lieu'\Book Shop
R DADu Ieupu
C All Tasks › D:\Du lieu\DU lieu 1VEB1HaaiAn40
—_ baithuchanh View _Vvtl_p
Printer
Refresh lisstart.asp
PARTE Listen localstart.asp
Properties mmc.gif
| create new Web Virtual Directory
¡_ Nguyễn Minh Đức - Khoa CNTT
Trang 11Câu hình IIS —
Virtual Directory Creation W1izard
Welcome to the Virtual Directory Creation Wizard
This wizard will help you create a new Virtual Directory on this Web site
Click Next to continue
Cancel
¡_ Nguyễn Minh Đức - Khoa CNTT
Trang 12Câu hình IIS „
Virtual Directory Creation W1zard
Virtual Directory Alias You must give the virtual directory a short name, or alias, for quick reference
Type the alias you want to use to gain access to this Web virtual directory Use the same naming conventions that you would for naming 4 directory
Thuchanh_Web
< Back Next > Cancel
¡_ Nguyễn Minh Đức - Khoa CNTT
Trang 13Câu hình IIS „——
Virtual Directory Creation Wizard
Browse For Folder
Web Site Content Directory
Where is the content you want to publish on the Web site? Virtual Directory Creation Wizard
Enter the path to the directory that contains the content # (3 Tai lieu VB
(CÔ Thiet Ke
# |) Thuchanh ASP
#' (3 Wnnquiz
Directory:
( =GXE,
1.) Anh
# |) Bitmap
i images
CÔ test
Os cee an
<
| Make New Folder | |_ OK || canel J
< Back Next Cancel |
¡_ Nguyễn Minh Đức - Khoa CNTT
Trang 14Câu hình IIS
Virtual Directory Creation Wizard
Access Permissions What access permissions do you want to set for this virtual directory?
Allow the following:
Read Run scripts [such as ASP]
IExecute (such as ISAPI applications or CGI}
Write
«l1 Browse
Click Next to complete the wizard
< Back Next >
Cancel
¡_ Nguyễn Minh Đức - Khoa CNTT
Trang 15
Câu hình IIS
>€ Internet Information Services File Action View Help
©e + f#iẪm X @ifi> ail
` 4 Internet Information Services
=| MINHDUC (local computer)
=|] Web Sites
=| @ Default Web Site
a Printers
Se i=
24] Thuchanh_Web
|
+
tsweb Tramghiem ASPComputer Diendan IISHelp
Book Shop
Web_Detai
r Ôi F E % a 3 >
(9 _vti_pvt
~] Printer
(3 FIP Sites Default SMTP Virtual Server
< II Fˆ
¡_ Nguyễn Minh Đức - Khoa CNTT
Name Bitmap
Anh
test
images
b Yahoo.htm
3] change_password.asp
b datacann.asp
®] dataend.asp 3] default.asp
3] qetpass.asp 3] login_form.asp
b Cauhoi_data.asp
3] Cauhoi_edit.asp
9] Cauhoi_admin.asp
3] Test_delete.asp
3] Test_edit.asp
3] sendmail.asp
I8] Data.mdb
3] Cauhoi.asp
= ee el a ee —==~
< Ill
| Path
Trang 16
1ä Wellcome to Website of Nguyen Minh Duc - Microsoft Internet Explorer Sele
File Edit View Favorites Tools Heln ae
@x- ©_- bì 3 6b se ý me @ Ô- Q Bà) Ÿ
Addres €) http://minhducthuchanh_web/ IaaL vi Go Links ”°
>>!
Chương trình Kiêm tra thi Trăc Nghiệm
Kiểm tra
Quản lý và thông kê
minhducmd@yahoo.com
[€i Done | | | | | | a) Local intranet
¡_ Nguyễn Minh Đức - Khoa CNTT |