opkg install lighttpd
cp /opt/etc/init.d/S80lighttpd /opt/etc/init.d/lightP
opkg remove lighttpd
server.port=8082
##
include "/tmp/mnt/Elements/entware/etc/lighttpd/forIcloud/lightP.conf"
server.document-root="/tmp/lighttpd/www"
cd /opt/etc/lighttpd
mkdir forIcloud
nano /opt/etc/lighttpd/forIcloud/lightP.conf
$SERVER["socket"]==":81"{
server.document-root = "/opt/share/www"
server.upload-dirs = ( "/opt/tmp" )
server.errorlog = "/opt/var/log/lighttpd/error.log"
index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm",
)
}
/opt/etc/init.d/lightP restart
We use essential cookies to make this site work, and optional cookies to enhance your experience.