Ky Anh a �crit :
XIn giup em voi:
1/ la`m the^? na`o dde^? apache cho phe'p l ie^.t t ke^ ca'c ta^.p tin trong thu+ mu.c /var/www/html/ ? (ne^'u no' ko^ ti`m tha^'y ta^.p tin index.*)
2/ Sao ma` em pha?i go~
http://127.0.0.1/~kyanh/
va`o address bar cu?a tri`nh duye^.t thi` mo+'i ddu+o+.c; co`n go~
http://127.0.0.1/~kyanh
(kho^ng co' slash o+? cuo^'i) thi` You don't have permission to access /~kyanh/ on this server.
Xin ca'm o+n!
Do.c o+? dda^y :
http://httpd.apache.org/docs/mod/mod_dir.html#directoryindex
The DirectoryIndex directive sets the list of resources to look for, when the client requests an index of the directory by specifying a / at the end of the a directory name. Local-url is the (%-encoded) URL of a document on the server relative to the requested directory; it is usually the name of a file in the directory. Several URLs may be given, in which case the server will return the first one that it finds. If none of the resources exist and the Indexes option is set, the server will generate its own listing of the directory.
Example:
DirectoryIndex index.html
then a request for http://myserver/docs/ would return http://myserver/docs/index.html if it exists, or would list the directory if it did not.
Noi chung settings by default la
DirectoryIndex index.html index.htm index.shtml index.cgi
Cu. the^? edit file /etc/apache/httpd.conf ne^'u muo^'n bo^? sung them file khac.
--
Vu Do Quynh
Agence universitaire de la Francophonie, Bureau Asie Pacifique
Responsable, Centre d'Acc�s � l'Information scientifique et technique (CAI) de Hanoi
08 rue Tran Hung Dao, Hanoi, Vietnam
T�l: +84-4-9331070 ; T�l�copie: +84-4-8247383
Sites de toile: http://www.vn.refer.org/
------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ VietLUG-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/vietlug-users
