Jump to content
Sign in to follow this  
razirazo

Lighthttpd...

Recommended Posts

a'kum..

aku sekarag ni baru nak berjinak2 dengan lighttpd.dulu pakai apache tapi berat.
httpd ni memang ringan dan pantas.

sesiapa yang tak tau..lighthttpd ialah webserver.tak macam apache atau iss..benda ni halus dan ringan je.webserver juga ni digunakan kat website youtube,thepiratebay smile.gif ,download/upload.wikipedia.org dan macam2 lagi..

tapi aku ada satu problem,server ni taknak show direktori.
kalau kita bukak takat level folder je(tak tarus bukak fail) dari browser dia akan kuar error 404(not found).
kalau apache(atau yang lain) kan dia akan listkan fail dalam folder tu?betul tak?

sebab aku nak buat site(intranet je..)download.kalau boleh show directory senang sikit.

so,soalannya..cam mana nak enablekan directory handler kat dalam lighthttpd? Edited by razi_90@IBM thinkcentre

Share this post


Link to post
Share on other sites
Open lighttpd configuration file:

CODE
# vi /etc/lighttpd/lighttpd.conf


Append / modify

CODE
server.dir-listing = "enable"


OR

CODE
dir-listing.activate = "enable"


Save and close the file. Restart lighttpd:

CODE
# /etc/init.d/lighttpd restart


To disable directory listing, use:

CODE
dir-listing.activate = "disable"


Enable directory listing only for a directory

You can also enable or disable listing on selected url / directory combination. For example, display directory listing only for /files/:

CODE
$HTTP["url"] =~ "^/files($|/)" { server.dir-listing = "enable" }


OR

CODE
$HTTP["url"] =~ "^/files($|/)" { dir-listing.activate = "enable" }


Sumber: http://www.cyberciti.biz/tips/howto-lightt...ry-listing.html Edited by BasicCX

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...