not found file on symlink...
    zuckbin 
    nginx-forum at nginx.us
       
    Thu May 24 09:06:56 UTC 2012
    
    
  
Hi,
I use symlink on files, but nginx got error 404 on files.
I can access the file like this (no error):
http://static.xxx.tld/kvr2wery235cd57uio457azd4a5Tf78sR/2012/20126190.pdf
but not like this
http://static.xxx.tld/dlpdf/24052012w/20127063.pdf this link is a
symlink to this file
http://static.xxx.tld/kvr2wery235cd57uio457azd4a5Tf78sR/2012/20126190.pdf
Why the serveur said the file is not found ?  I don't understand
Here my conf:
	server {
		listen 80;
		server_name static.xxx.tld;
		root /home/www/static.xxx.tld;
		location / {
		return 404;
		}
		location ~*
^.+.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|xml|swf|otf|eot)$
{
			root /home/www/static.xxx.tld;
			expires 30d;
			add_header Pragma public;
			add_header Cache-Control "public";
		}
	}
Thanks for your help
Bye
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,226784,226784#msg-226784
    
    
More information about the nginx
mailing list