rewrite ->

Grzegorz Sienko staff at
Sat Dec 19 17:16:14 MSK 2009


I have a little problem with my rewrite and I need assist.

It's my config:
server {
listen                80;
root                  /home/resources/domain/db;
index                index.php;

access_log      /home/log/nginx/domain.access.log main;
error_log          /home/log/nginx/domain.error.log error;

location ~ \.php$ {
fastcgi_pass                  ;
fastcgi_index                           index.php;
fastcgi_param  SCRIPT_FILENAME
include                                    fastcgi_params;

rewrite ^/([^\.]+)/([^\.]+)$ /index.php?$1/$2 last;
rewrite ^/([^\.]+)/([^\.]+)/([^\.]+)$ /index.php?$1/$2/$3 last;



and it seems to work, but with one problem. I cannot load any graphics,
javascript file etc (anything file.extension)

2009/12/19 14:58:18 [error] 26753#0: *3018846 open()
failed (2: No such file or directory), client: 84.10.8.*, server:,
request: "GET /show/anime/hidamari-sketch-x-365/599/140//img/db_script.gif
HTTP/1.1", host: "", referrer: ""

File is here: And I don't know hot to fix it
^^. Anyone can help me? :)

Best Regards
 Grzegorz Sienko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list