Is there any way to have uhtttp to log access and errors ( on the sd card) ?
I think uhttpd does not have logging at all
I was supposing that too after googling in vain .
Is there any tuto somewhere to install lighttd IN PLACE of uhhtpd ? (in fact no, because of Lua etc..)
My problem is that sometimes , HTML page on the sd card, with javascript (Jquery, JustGauge..) reading a local JSON returns EMPTY content for a few seconds (max 10 ?) . Same problem with php (working all other time), and of course no error code , no error message in the page.. (uhttpd seems to handle only 404 errors by the way)
And i have to be fast to test via CURL on the same URL to catch something.. when safari get empty result...
I'm alone on the LAN to use the Yun. I use Safari for this , it has a max of 6 parallel HTTP request parameter.
My config has set max request to 10
uhttpd.main=uhttpd
uhttpd.main.listen_http=0.0.0.0:80
uhttpd.main.listen_https=0.0.0.0:443
uhttpd.main.home=/www
uhttpd.main.rfc1918_filter=0
uhttpd.main.cert=/etc/uhttpd.crt
uhttpd.main.key=/etc/uhttpd.key
uhttpd.main.cgi_prefix=/cgi-bin
uhttpd.main.script_timeout=60
uhttpd.main.network_timeout=30
uhttpd.main.tcp_keepalive=1
uhttpd.main.max_requests=10
uhttpd.main.interpreter=.php=/usr/bin/php-cgi
uhttpd.main.index_page=index.html index.htm default.html default.htm index.php
Possible work around:
The latest version uhttpd does support log.
Usage of uhttpd:
-addr=":80": The ADDRESS:PORT to listen on
-dir="": The directory to serve up
-log=false: Enable/disable logging
-log-path="": Log to file (leave blank for STDOUT)
-log-prefix="uhttpd": Set the logging prefix
At openwrt-yun (Attitude Adjustment):
PKG_NAME:=uhttpd
PKG_VERSION:=2012-10-30
At trunk:
PKG_NAME:=uhttpd
PKG_VERSION:=2014-03-22
Back port the newer version uhttpd to openwrt-yun?
well some specialist of building packages has to ![]()
There is no issue in using lighttp or apache or anything else in place of uhttpd. The ONLY issue if with lua/luci/arduino webpanel. You turn lighttp off and uhttpd on only when you need lua stuff