razirazo 24 Report post Posted March 27, 2010 salam, nak tanya kepada pengguna webserver lighttpd... kalau kita pakai apache, ada .htaccess untuk deny akses ke direktori tertentu(403-forbidden), tapi lighhttpd takde benda alah tu. so.. ada tak cara untuk untuk kita deny diretory(selain mod_access untuk deny extension)? Quote Share this post Link to post Share on other sites
BasicCX 27 Report post Posted March 27, 2010 Salam, http://stackoverflow.com/questions/62384/how-to-convert-apache-htaccess-files-into-lighttpd-rules Quote Share this post Link to post Share on other sites
johnburn 6 Report post Posted March 29, 2010 [quote name='Razi_IBM' date='27 March 2010 - 07:26 PM' timestamp='1269689175' post='1023310'] salam, nak tanya kepada pengguna webserver lighttpd... kalau kita pakai apache, ada .htaccess untuk deny akses ke direktori tertentu(403-forbidden), tapi lighhttpd takde benda alah tu. so.. ada tak cara untuk untuk kita deny diretory(selain mod_access untuk deny extension)? [/quote] edit file [b]lighttpd.conf[/b] tukar [b]server.dir-listing[/b] kepada [b]disable[/b] pastu restart server [code]server.dir-listing = "disable"[/code] Quote Share this post Link to post Share on other sites
razirazo 24 Report post Posted March 30, 2010 thanks, aku guna mod_rewrite.lol..complicated.. tapi masih tak se-power htaccess sebab kalau boleh aku nak blok ikut ip. disable dir listing tak boleh pakai sebab tak semua dir aku nak deny. Quote Share this post Link to post Share on other sites
johnburn 6 Report post Posted March 30, 2010 actually ko pnye mslh nk buat rewrite rule ke yg nk deny directory listing? kl yg rewrite tu, bleh pkai url.rewrite bleh rjuk sini: http://redmine.lighttpd.net/wiki/1/Docs:ModRewrite Quote Share this post Link to post Share on other sites
razirazo 24 Report post Posted March 31, 2010 emm.. camni.. aku nak deny direktori tertentu je.(atau perlu pass untuk akses) ada sesetengah direktori masih boleh list macam biasa. Quote Share this post Link to post Share on other sites
johnburn 6 Report post Posted March 31, 2010 (edited) bleh try ni: http://www.cyberciti.biz/tips/lighttpd-deny-access-to-certain-files.html http://www.cyberciti.biz/tips/lighttpd-setup-a-password-protected-directory-directories.html Edited March 31, 2010 by johnburn Quote Share this post Link to post Share on other sites
BasicCX 27 Report post Posted March 31, 2010 Salam, Kan dah bagi dekat link atas tu. Takpe, klik yang ni: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModDirlisting Quote Share this post Link to post Share on other sites