Danja Vasiliev 10 years ago
parent
commit
9285bca79c

+ 1 - 1
openwrt/DIR505A1/etc/lighttpd/lighttpd.conf

@@ -42,7 +42,7 @@ cgi.assign = ( ".sh" => "/bin/bash" )
 url.access-deny = ( "~", ".inc", ".htaccess", ".htpasswd")
 
 $HTTP["request-method"] == "POST" {
- server.document-root = "/www/lib"
+ server.document-root = "/www/lib/cgi"
  url.rewrite = ( ".*" => "post.sh" )
 }
 

+ 1 - 1
openwrt/TLWR710/etc/lighttpd/lighttpd.conf

@@ -42,7 +42,7 @@ cgi.assign = ( ".sh" => "/bin/bash" )
 url.access-deny = ( "~", ".inc", ".htaccess", ".htpasswd")
 
 $HTTP["request-method"] == "POST" {
- server.document-root = "/www/lib"
+ server.document-root = "/www/lib/cgi"
  url.rewrite = ( ".*" => "post.sh" )
 }
 

+ 3 - 0
openwrt/TLWR710/etc/rc.local

@@ -3,6 +3,9 @@
 ## where SuperGlue storage is mounted 
 _SG=/www/htdocs
 
+## mount if needed
+mountpoint -q $_SG || block mount $_SG
+
 ## if /www is mounted
 mountpoint -q $_SG && (