uhttpd config, index file, php vs. html


hi, in yun installed php , work fine..
now have question:

if put in /www dir index.php file , go http://my.yun.ip , webserver redirects me to: http://my.yun.ipcgi-bin/luci/webpanel/homepage because in /www dir there index.html file redirect ..

how can set index.php priority instead of html files ?

i tried set in /etc/config/uhttpd file "option index_page" or "option index_file" described here: http://wiki.openwrt.org/doc/uci/uhttpd.
after saving changes, did utttpd restart no 1 solution worked...

the output of

code: [select]
uci show uhttpd

if missing:

code: [select]
uhttpd.main.index_page=index.php

then need run:

code: [select]
uci set uhttpd.main.index_page=index.php
uci commit
/etc/init.d/uhttpd restart


empty cache of browser, @ chrome clean history, restart browser , visit http://ip_address_yun/.


Arduino Forum > Products > Arduino Yún (Moderator: fabioc84) > uhttpd config, index file, php vs. html


arduino

Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support