Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed lighttpd-1.4.28 to serve static files,but I want to add mintype (html) on specific folder not all document root how, can do it ?

share|improve this question

I'm not familiar with mintype but lighttpd's conditional config file stuff is quite powerful. Take a look at this URL under "Conditional Configuration" :

Specifically, you can make a config block apply only to a certain URL regex.

Their example:

# disable directory-listings for /download/*
dir-listing.activate = "enable" 
$HTTP["url"] =~ "^/download/" {
    dir-listing.activate = "disable" 

In your case you could try

    # mintype settings you want for folder go here
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.