Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8cc893f
)
etc: Use xset to pass content-type to sendfile.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 13 Dec 2011 18:58:30 +0000
(19:58 +0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 13 Dec 2011 18:58:30 +0000
(19:58 +0100)
etc/ashd/dirplex.d/send.rc
patch
|
blob
|
blame
|
history
diff --git
a/etc/ashd/dirplex.d/send.rc
b/etc/ashd/dirplex.d/send.rc
index
1c4f7cf
..
ae540a2
100644
(file)
--- a/
etc/ashd/dirplex.d/send.rc
+++ b/
etc/ashd/dirplex.d/send.rc
@@
-1,20
+1,33
@@
+fchild send
+ exec sendfile
+
match
filename *.html
match
filename *.html
- fork sendfile -c text/html
+ xset content-type text/html
+ handler send
match
filename *.css
match
filename *.css
- fork sendfile -c text/css
+ xset content-type text/css
+ handler send
match
filename *.txt
match
filename *.txt
- fork sendfile -c text/plain
+ xset content-type text/plain
+ handler send
+match
+ filename *.js
+ xset content-type text/javascript
+ handler send
# Image types
match
filename *.gif
# Image types
match
filename *.gif
- fork sendfile -c image/gif
+ xset content-type image/gif
+ handler send
match
filename *.png
match
filename *.png
- fork sendfile -c image/png
+ xset content-type image/png
+ handler send
match
filename *.jpg *.jpeg
match
filename *.jpg *.jpeg
- fork sendfile -c image/jpeg
+ xset content-type image/jpeg
+ handler send