Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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.