I am building a simple module that does a uri rewrite (not using the rewrite module). The module directive is fastimg_rewrite with no parameters.
I build the code, including the module.
When attempt to access any url, I get an error in the log:
*1 rewrite or internal redirection cycle while internally redirecting to "/images/bar/index.html”
Funny thing is, I have not added the directive to my config file yet!
Q1: Directive not in config - why is my module executing?
Q2: What does this error message indicate? I do want to redirect to “/images/bar/index.html”!!
Here is the config file:
server {
listen 192.168.1.101:80;
server_name dev.static.ranchmed.com http://dev.static.ranchmed.com/;
root /var/www/html/static.ranchmed.com http://static.ranchmed.com/;
charset UTF-8;
location / {
}
location /images/ {
# fastimg_rewrite;
# try_files $uri @fastimg_fcgi;
}
location @fastimg_fcgi {
include fastcgi_params;
fastcgi_pass 127.0.0.1:3000;
}
}_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel