After server reboot images from sites have gone.
In few hours i've spotted that nginx loades images if i ask for the directly but doent load them from html page.
Here is example
<html>
<body>
1<img src="http://google.ru/favicon.ico" />
2<img src="/source/images/tools.png" />
3<img src="tools.png" />
</body>
</html>
1 & 3 works.
But i can access all of them.
nginx-1.8.0_3,2 on FreeBSD 10.1-RELEASE-p10
server
{listen 80;
server_name y-es.ru SITE;
charset utf-8;
error_log LOGERROR;
error_page 403 404 405 /error;
location /{index index;}
location ~\.php$ {deny all;}
location ~ \.(jpg|jpeg|png|bmp|ico|js|css|eof|ttf)$
{root /usr/www/www.y-es.ru;
access_log off;
expires 30d;}
location ~/[a-zA-Z0-9]+$
{default_type text/html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME /usr/local/www/SITE/index.php;
include fastcgi_params;}}
PS css and js works fine
Edited 2 time(s). Last edit at 09/10/2015 09:11AM by es131.