|
@@ -25,7 +25,7 @@ server.port = 80
|
|
|
## defines var.superglueVersion from /etc/superglue_version
|
|
|
include_shell "/etc/lighttpd/vars.sh"
|
|
|
|
|
|
-setenv.add-response-header = ( "X-SuperGlue-Version" => var.superglueVersion )
|
|
|
+setenv.add-response-header = ( "X-Superglue-Version" => var.superglueVersion )
|
|
|
|
|
|
#debug.log-request-handling = "enable"
|
|
|
#debug.log-request-header = "enable"
|
|
@@ -44,7 +44,8 @@ compress.filetype = ( "application/x-javascript", "text/css", "text/html", "text
|
|
|
|
|
|
index-file.names = ( "index.html", "default.html" )
|
|
|
|
|
|
-cgi.assign = ( ".sh" => "/bin/bash" )
|
|
|
+#cgi.assign = ( ".sh" => "/bin/bash" )
|
|
|
+cgi.assign = ( ".cgi" => "" )
|
|
|
url.access-deny = ( "~", ".inc", ".htaccess", ".htpasswd", "htpasswd")
|
|
|
|
|
|
$HTTP["request-method"] == "GET" {
|
|
@@ -60,10 +61,10 @@ $HTTP["request-method"] == "GET" {
|
|
|
}
|
|
|
|
|
|
$HTTP["request-method"] == "POST" {
|
|
|
- url.rewrite = ( "^(/(?!admin).*)" => "post.sh",
|
|
|
+ url.rewrite = ( "^(/(?!admin).*)" => "post.cgi",
|
|
|
"^(/(admin).*)" => "admin.sh"
|
|
|
)
|
|
|
- $HTTP["url"] =~ "^/post.sh" {
|
|
|
+ $HTTP["url"] =~ "^/post.cgi" {
|
|
|
server.document-root = "/www/lib/cgi"
|
|
|
}
|
|
|
$HTTP["url"] =~ "^/admin.sh" {
|
|
@@ -71,13 +72,13 @@ $HTTP["request-method"] == "POST" {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-auth.require = (
|
|
|
- "/post.sh" => ( "method" => "digest",
|
|
|
- "realm" => "superglue",
|
|
|
- "require" => "valid-user" ),
|
|
|
- "/admin" => ( "method" => "digest",
|
|
|
- "realm" => "superglue",
|
|
|
- "require" => "valid-user" )
|
|
|
- )
|
|
|
+#auth.require = (
|
|
|
+# "/post.sh" => ( "method" => "digest",
|
|
|
+# "realm" => "superglue",
|
|
|
+# "require" => "valid-user" ),
|
|
|
+# "/admin" => ( "method" => "digest",
|
|
|
+# "realm" => "superglue",
|
|
|
+# "require" => "valid-user" )
|
|
|
+#)
|
|
|
|
|
|
include "/etc/lighttpd/mime.conf"
|