Take the 2-minute tour ×
Server Fault is a question and answer site for professional 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
add comment

1 Answer

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" : http://redmine.lighttpd.net/wiki/1/Docs: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

$HTTP["url"] =~ "REGEX MATCHING SPECIFIC FOLDER" {
    # mintype settings you want for folder go here
}
share|improve this answer
add comment

Your Answer

 
discard

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.