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:
http://www.joscandreu.com/post/22439909 ... aspberrypi
File is NOT present in:
/var/www/nginx-default/index.html
or
/var/www/nginx/index.html
Anyone else run into this? Thanks
NGINX default/inde.html ?!
5 posts
- Posts: 32
- Joined: Tue Jul 31, 2012 11:33 pm
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!
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: 32
- Joined: Tue Jul 31, 2012 11:33 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 .
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: 18
- Joined: Sun Oct 28, 2012 4:58 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: 32
- Joined: Tue Jul 31, 2012 11:33 pm
found the index files here
/usr/share/nginx/www
/usr/share/nginx/www
- Posts: 6
- Joined: Wed Sep 05, 2012 9:26 am