Welcome! Log In Create A New Profile

Advanced

nginx.conf and directories error

Posted by es131 
nginx.conf and directories error
September 10, 2015 09:07AM
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.
Re: nginx.conf and directories error
September 10, 2015 09:44AM
Look in the nginx logfiles.

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: nginx.conf and directories error
September 10, 2015 09:59AM
You are right. There where no request for images.
So it's not nginx.

Thx.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 137
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready