|
@@ -7,8 +7,12 @@ cd ..
|
|
|
|
|
|
[ -f "$SITE_DIR/_wesh/config" ] && . "$SITE_DIR/_wesh/config"
|
|
|
|
|
|
-printf "Content-Type: text/html\n"
|
|
|
-printf "\n"
|
|
|
+if [ -f "./$REQUEST_PATH" ]; then
|
|
|
+ static_file "./$REQUEST_PATH"
|
|
|
+else
|
|
|
+ printf "Content-Type: text/html\n"
|
|
|
+ printf "\n"
|
|
|
|
|
|
-handler lib/headers.tpl
|
|
|
-handler lib/default_master.tpl
|
|
|
+ handler lib/headers.tpl
|
|
|
+ handler lib/default_master.tpl
|
|
|
+fi
|