Thng bo l?i "L?i HTTP 404 - File ho?c th m?c khng t?m th?y" khi b?n yu c?u n?i dung ?ng v?i IIS 6.0

D?ch tiu ? D?ch tiu ?
ID c?a bi: 315122 - Xem s?n ph?m m bi ny p d?ng vo.
Bung t?t c? | Thu g?n t?t c?

TRI?U CH?NG

Khi b?n yu c?u n?i dung ?ng nh l m?t trang Active Server Pages (ASP), m?t ASP.NET trang, m?t ?ng d?ng API d?ch v? Internet (ISAPI) ho?c m?t ?ng d?ng Common Gateway Interface (CGI) trn m?t my ch? Microsoft Windows Server 2003 ang ch?y Internet Information Services (IIS) 6.0, b?n c th? nh?n ?c m?t trong cc thng bo l?i sau y:
Thng bao li 1
L?i HTTP 404 - File khng t?m th?y
Thng bo l?i 2
L?i HTTP 404 File ho?c th m?c khng t?m th?y

NGUYN NHN

Theo m?c ?nh, khi IIS ?c ci ?t trn b?t k? phin b?n no c?a gia ?nh Windows Server 2003, IIS ch? ph?c v? n?i dung t?nh (HTML).

GI?I PHP

C?nh bo Cho php n?i dung ?ng khi b?n th?c s? mu?n s? d?ng n. Theo m?c ?nh, IIS v hi?u ho n?i dung ?ng v? l? do an ninh.

Cho php IIS ? ph?c v? n?i dung ?ng, cc qu?n tr? vin ph?i m? kha n?i dung ny trong n?t ph?n m? r?ng d?ch v? Web trong qu?n l? IIS. ? lm i?u ny, ng?i qu?n tr? ph?i ho?c l kch ho?t m?t ph?n m? r?ng c s?n d?ch v? Web ho?c thm m?t ph?n m? r?ng m?i d?ch v? Web.

Cho php m?t ph?n m? r?ng d?ch v? Web c s?n trong IIS 6.0

Cho php IIS ? phn ph?i n?i dung m yu c?u m?t ISAPI c? th? ho?c ph?n m? r?ng c?a CGI ? ?c li?t k trong danh sch ph?n m? r?ng d?ch v? Web, h?y lm theo cc b?c sau:
  1. M? b? qu?n l? IIS, m? r?ng ch? my ch? nt (c ngh?a l, cc ServerName nt), v sau ch?n cc Ph?n m? r?ng d?ch v? web nt.
  2. Trong ngn bn ph?i c?a IIS Manager, b?m chu?t ph?i vo ph?n m? r?ng b?n mu?n kch ho?t. Trong v d? ny, y l Active Server Pages.
  3. Nh?n vo y ? ch?n cc Cho php h?p ki?m.
Thm m?t ph?n m? r?ng m?i d?ch v? Web vo IIS 6.0

Cho php IIS ? phn ph?i n?i dung m yu c?u m?t ISAPI c? th? ho?c ph?n m? r?ng c?a CGI ? khng ?c li?t k trong danh sch ph?n m? r?ng d?ch v? Web, h?y lm theo cc b?c sau:
  1. M? b? qu?n l? IIS, m? r?ng ch? my ch? nt, v sau ch?n cc Ph?n m? r?ng d?ch v? web nt.
  2. Trong ngn bn ph?i c?a tr?nh qu?n l? IIS, nh?p vo Thm m?t ph?n m? r?ng m?i d?ch v? Web d?i Tac vu.
  3. Trong cc Ph?n m? r?ng tn h?p, g? tn thn thi?n cho ph?n m? r?ng b?n mu?n thm (v d?, Phn m rng May chu FrontPage).
  4. Trong cc T?p yu c?u h?p, b?m vo Thm, v sau ch?n ?ng d?n v tn t?p s? x? l? yu c?u cho ph?n m? r?ng c? th?. Sau khi b?n ch?n ?ng d?n v tn t?p, b?m Ok.
  5. N?u ph?n m? r?ng ph?i ?c kch ho?t ngay l?p t?c, nh?p vo ? ch?n cc ?t tr?ng thi m? r?ng ? cho php h?p ki?m.
  6. Nh?p vo Ok ? lu cc thay ?i.
Cc b?c b? sung cho cc ?ng d?ng ph? bi?n c?a ng? giao di?n (CGI)

Cho cc ?ng d?ng CGI, b?n c?ng ph?i lm theo cc b?c sau:
  1. Nh?p chu?t ph?i Trang Web m?c ?nh ho?c cc trang Web m b?n mu?n, v sau nh?p vo Thu?c tnh.
  2. Trn cc Th m?c chnh tab, b?m vo K?ch b?n v th?c thi trong cc Th?c hi?n quy?n danh sch.
  3. ?m b?o r?ng t?t c? nhm c quy?n h?n c?a h? th?ng sau NTFS t?p tin vo th m?c C:\InetPub\wwwroot ho?c trn c?p c n?i dung Web cho trang web m b?n mu?n:
    • ?c & th?c thi
    • Danh sch th m?c n?i dung
    • oc
  4. Nh?p chu?t ph?i Trang Web m?c ?nh ho?c cc trang Web m b?n mu?n, v sau nh?p vo Thu?c tnh.
  5. Trn cc Th m?c chnh tab, ch?c ch?n r?ng DefaultAppPool l l?a ch?n trong cc H? bi ?ng d?ng h?p. N?u m?t ?ng d?ng h? bi ?c ch?n, lm theo cc b?c trong IIS qu?n l?:
    1. M? r?ng H? bi ?ng d?ng, b?m chu?t ph?i vo h? bi ?ng d?ng m b?n mu?n, v sau nh?p vo Thu?c tnh.
    2. Trn cc Danh tnh tab, ?m b?o r?ng m?t trong nh?ng i?u ki?n sau l ng:
      • Cc D?ch v? m?ng trng m?c ?c ch?n.
      • Cc ti kho?n ?c ch?n l thnh vin c?a nhm IIS_WPG.

T?NH TR?NG

Hnh vi ny l do thi?t k?.

THAM KH?O

? bi?t thm chi ti?t v? ph?n m? r?ng d?ch v? Web, t?m ki?m cho "Vi?c kch ho?t v v hi?u ho Dynamic Content" trong IIS 6.0 gip ti li?u.

? bi?t thm thng tin, h?y b?m vao s? bi vi?t sau ? xem bi vi?t trong C s? Ki?n th?c Microsoft:
332124ASP.NET khng t? ?ng ?c ci ?t trn Windows Server 2003

Thu?c tnh

ID c?a bi: 315122 - L?n xem xt sau cng: 22 Thang Chin 2011 - Xem xt l?i: 3.0
p d?ng
  • Microsoft Internet Information Services 6.0
  • Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
  • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
  • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
  • Microsoft Windows Server 2003, Web Edition
  • Microsoft Windows Small Business Server 2003 Premium Edition
  • Microsoft Windows Small Business Server 2003 Standard Edition
T? kha:
kbprb kbwebservices kbappservices kbhowtomaster kbmt KB315122 KbMtvi
My d?ch
QUAN TRONG: Bi vi?t ny ?c d?ch b?ng ph?n m?m d?ch my c?a Microsoft ch? khng ph?i do con ng?i d?ch. Microsoft cung c?p cc bi vi?t do con ng?i d?ch v c? cc bi vi?t do my d?ch ? b?n c th? truy c?p vo t?t c? cc bi vi?t trong C s? Ki?n th?c c?a chng ti b?ng ngn ng? c?a b?n. Tuy nhin, bi vi?t do my d?ch khng ph?i lc no c?ng hon h?o. Lo?i bi vi?t ny c th? ch?a cc sai st v? t? v?ng, c php ho?c ng? php, gi?ng nh m?t ng?i n?c ngoi c th? m?c sai st khi ni ngn ng? c?a b?n. Microsoft khng ch?u trch nhi?m v? b?t k? s? thi?u chnh xc, sai st ho?c thi?t h?i no do vi?c d?ch sai n?i dung ho?c do ho?t ?ng s? d?ng c?a khch hng gy ra. Microsoft c?ng th?ng xuyn c?p nh?t ph?n m?m d?ch my ny.
Nh?p chu?t vo y ? xem b?n ti?ng Anh c?a bi vi?t ny:315122

Cung cp Phan hi

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com