[SOLVED] Cannot serve my own html files

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

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?

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.

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.

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 :slight_smile:

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