localhost path to images directory

bizshop nginx-forum at nginx.us
Mon Nov 21 19:21:03 UTC 2011


I have nginx and php5-fpm set up and working to serve /var/www/index.php
as localhost/index.php
That works fine. The images on the page are not showing up however. The
images are in a folder /var/www/images
The  folder has same user/group permissions as the index page
I can see an image in my file manager at /var/www/images/key.gif and
gave it 777 permission
Page source shows image should be at relative path images/key.gif 
Pageinfo  (Firefox) says image should be at
http://localhost/images/key.gif
Typing directly in browser window http://localhost/images/key.gif gets a
404

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,218718,218718#msg-218718



More information about the nginx mailing list