Module executed w/o directive in config
Mark Sellers
msellers at ranchmed.com
Thu Jan 3 16:46:30 UTC 2019
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;
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20190103/16279665/attachment.html>
More information about the nginx-devel
mailing list