Danja Vasiliev 10 년 전
부모
커밋
9285bca79c
3개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      openwrt/DIR505A1/etc/lighttpd/lighttpd.conf
  2. 1 1
      openwrt/TLWR710/etc/lighttpd/lighttpd.conf
  3. 3 0
      openwrt/TLWR710/etc/rc.local

+ 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 && (