NGINX default/inde.html ?!

5 posts
by cyanarnofsky » Tue Nov 06, 2012 11:43 pm
Have NGINX setup, my issue is I cannot find where the default index.html is located. I get welcome to nginx page when I go to my Pi's IP, I have searched really everywhere and must be missing it.

Followed this guide: ... aspberrypi

File is NOT present in:

Anyone else run into this? Thanks
Posts: 70
Joined: Tue Jul 31, 2012 11:33 pm
by cyanarnofsky » Wed Nov 07, 2012 12:49 am
I found the occurring file in /usr/share/nginx/www but when deleted or changed no changes show up when I type the pi Ip in a browser. Is it being held else where as well?

What I really want this program to do is point to a mounted usb stick that is under /usb/mediastick but I have tried changing the path next to "root" in config and nothing there as well :/ any help would be great thanks!
Posts: 70
Joined: Tue Jul 31, 2012 11:33 pm
by JoeSoap » Wed Nov 07, 2012 4:35 pm
I dont know the answer , but one tool to use is strace which exists on the pi .
To use it on nginx (assuming that the executable is nginx)
then an incantation something like (as root)
strace -o/tmp/dbin -f -tt xgnix
then open your browser and look at it. Then kill the strace (ctl-C)
and look in /tmp/dbin ... this is full of all the stuff that goes on,
(gallons of it) but if the file is index.html , then a search for that should
show the path used .

man strace has the details .
Posts: 56
Joined: Sun Oct 28, 2012 4:58 pm
by cyanarnofsky » Wed Nov 07, 2012 8:29 pm
Was actually a very noob mistake on my part...didn't restart the service so my changes where not taking effect >.<, solved now :)
Posts: 70
Joined: Tue Jul 31, 2012 11:33 pm
by cloud1771 » Thu Mar 07, 2013 2:53 am
found the index files here
Posts: 7
Joined: Wed Sep 05, 2012 9:26 am