Browse Source

moved htpasswd to /lib

Danja Vasiliev 10 years ago
parent
commit
4bb347c8a5

+ 1 - 2
openwrt/common/etc/lighttpd/lighttpd.conf

@@ -30,7 +30,6 @@ dir-listing.hide-dotfiles = "enable"
 include_shell "/etc/lighttpd/vars.sh"
 
 setenv.add-response-header = ( "X-Superglue-Version" => var.superglueVersion )
-setenv.add-environment = ( "SUPERGLUE_VERSION" => var.superglueVersion )
 
 #debug.log-request-handling = "enable"
 #debug.log-request-header = "enable"
@@ -94,7 +93,7 @@ $HTTP["request-method"] == "GET" {
   )
   ## override content and mime type for dotless files to text/html  
   $HTTP["url"] !~ "(\.)" {                                                                 
-    setenv.add-response-header = (                                                         
+    setenv.add-response-header += (                                                         
       "X-Superglue-Dotless" => "text/html Content-Type was forced",                        
       "Content-Type" => "text/html"                                                        
     )                                                                                      

+ 1 - 1
openwrt/common/www/lib/admin/admin.sh

@@ -1,6 +1,6 @@
 #!/bin/bash
 
-_PWDFILE='/www/lib/admin/htpasswd'
+_PWDFILE='/www/lib/htpasswd'
 
 _TMP='/www/htdocs/tmp'
 _LOG="/www/htdocs/logs/admin.log"

+ 0 - 0
openwrt/common/www/lib/admin/htpasswd → openwrt/common/www/lib/htpasswd