Jump to content
Sign in to follow this  
razirazo

Lighttpd

Recommended Posts

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)?

Share this post


Link to post
Share on other sites
[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]

Share this post


Link to post
Share on other sites
thanks, aku guna mod_rewrite.lol..complicated..:wacko: 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.

Share this post


Link to post
Share on other sites
actually ko pnye mslh nk buat rewrite rule ke yg nk deny directory listing? :unsure:

kl yg rewrite tu, bleh pkai url.rewrite
bleh rjuk sini:
http://redmine.lighttpd.net/wiki/1/Docs:ModRewrite

Share this post


Link to post
Share on other sites
emm.. camni..
aku nak deny direktori tertentu je.(atau perlu pass untuk akses)
ada sesetengah direktori masih boleh list macam biasa.

Share this post


Link to post
Share on other sites
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 by johnburn

Share this post


Link to post
Share on other sites
Salam,

Kan dah bagi dekat link atas tu. Takpe, klik yang ni: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModDirlisting

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...