Welcome! Log In Create A New Profile

Advanced

Module executed w/o directive in config

Mark Sellers
January 03, 2019 11:48AM
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
Subject Author Views Posted

Module executed w/o directive in config

Mark Sellers 156 January 03, 2019 11:48AM

Re: Module executed w/o directive in config

Maxim Dounin 69 January 04, 2019 12:40AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 100
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready