----- Original Message ----- From: "Arief Yudhawarman" <[EMAIL PROTECTED]> Date: Mon, 09 Sep 2002 14:39:53 +0700 To: "klas-talk" <[EMAIL PROTECTED]>, "linux-setup" <[EMAIL PROTECTED]> Subject: directory listing di apache
Hai milisers ... Sesuai manual apache, kalau ingin menampilkan isi direktory bilama file default (index.html, index.cgi, etc) tidak ada maka digunakan paramater ini: Options Indexes pada direktori yg bersangkutan. Saya sudah coba mengakses url ini: http://www.myhost.com/~yudi atau pun begini http://www.myhost.com/~yudi/ tapi kok server menolak dg pesan error: [Mon Sep 9 14:03:22 2002] [error] [client a.b.c.d] File does not exist: /home/yudi/public_html// Lihat isi homepage saya. $ pwd $ /home/yudi/public_html $ ls gambar1.jpg file1.doc index.html.bak gambar2.jpg file2.doc Bila file index.html ada pd direktori tsb, homepage akan muncul normal. Konfigurasi httpd.conf sbb (saya kutip yg penting saja): ... DocumentRoot "/home/httpd/htdocs" <Directory /> Options None AllowOverride None Order deny,allow Deny from all </Directory> <IfModule mod_userdir.c> UserDir public_html </IfModule> <Directory /home/*/public_html> AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET POST OPTIONS PROPFIND> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS PROPFIND> Order deny,allow Deny from all </LimitExcept> </Directory> <Directory "/home/httpd/htdocs"> Options MultiViews Indexes AllowOverride None Order allow,deny Allow from all </Directory> Versi Apache: 1.3.26. Dicompile sendiri, apa mungkin ada option di configure yg terlewat ? Saya contoh configure dr "Securing & Optimizing RedHat Linux". Dear Yudi. file beserta direktori /home/yudi harus di chmod dulu chmod o+rx /home/yudi/public_html chmod o+rx /home/yudi/public_html/index.html agar bisa di baca oleh orang lain TIA ~yudi -- _______________________________________________ Get your free email from http://www.graffiti.net Powered by Outblaze
