<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div>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.<br class=""><br class="">I build the code, including the module.<br class=""><br class="">When attempt to access any url, I get an error in the log:<br class=""><br class="">*1 rewrite or internal redirection cycle while internally redirecting to "/images/bar/index.html”<br class=""><br class="">Funny thing is, I have not added the directive to my config file yet!<br class=""><br class="">Q1: Directive not in config - why is my module executing?<br class="">Q2: What does this error message indicate? I do want to redirect to “/images/bar/index.html”!!<br class=""><br class="">Here is the config file:<br class=""><br class="">server {<br class=""> listen 192.168.1.101:80;<br class=""> server_name <a href="http://dev.static.ranchmed.com" class="">dev.static.ranchmed.com</a>;<br class=""> root /var/www/html/<a href="http://static.ranchmed.com" class="">static.ranchmed.com</a>;<br class=""> charset UTF-8;<br class=""><br class=""> location / {<br class=""> }<br class=""><br class=""> location /images/ {<br class=""># fastimg_rewrite;<br class=""># try_files $uri @fastimg_fcgi;<br class=""> }<br class=""><br class=""> location @fastimg_fcgi {<br class=""> include fastcgi_params;<br class=""> fastcgi_pass 127.0.0.1:3000;<br class=""> }<br class="">}</body></html>