ebolisa
November 11, 2016, 11:25pm
1
Hi,
I’ve a new Yun board (ver Linino april 2016) and I cannot get to display the ‘Hello World’ coded in a test.html file stored on the SD card at /arduino/www/. I also placed the test.html file in the cd /www directory where there’s an existent index.html file but, no luck.
The board does serve the Lucy pages fine and the configuration files as well so, not sure what I’m doing wrong. Beside that, everything else is working.
Any help is appreciated.
TIA
xerof
November 12, 2016, 10:41am
2
Hi,
with My SD card, I place files in "/mnt/sda1/arduino/www" and then access them by "http://xxx.xxx.xxx.xxx/sd/test.html "
That should be the same as /mnt/sd/arduino/www
Are you calling the correct URL?
ebolisa
November 12, 2016, 2:34pm
3
Yes, that's correct and that's the way it should work. I've another Yun card running with Open-Wrt and it works just fine.
The new board has linino and I think the problem is related to the web server but my knowledge is limited.
ebolisa
November 14, 2016, 10:59am
4
FYI, I solved the problem by adding the following lines at the end of the uhttpd config file:
config uhttpd secondary
option listen_http 81
option /mnt/sd /arduino/www
option script_timeout 60
option network_timeout 30
may be a parch but worked for me.
Rds.
xerof
November 15, 2016, 12:03am
5
I just noticed that it actually happened to me on the Yun Shield...
ln -s /mnt/sda1/arduino/www/ /www/
Fixed my issue for me
ebolisa
November 15, 2016, 4:24pm
6
I understand but ln didn't work for me because in the uhttdp config file I've
option 'home' 'osjs/dist'
instead of
option 'home' '/www'
so I created an addition port entry (81) with the following lines and seems to work as well...
config uhttpd secondary
option listen_http 81
option home /www
option cgi_prefix /cgi-bin
option script_timeout 60
option network_timeout 30