Welcome! Log In Create A New Profile

Advanced

how to add a module to decode/modify parameter on HTTP request

冠胜
April 29, 2014 08:46AM
Hello,

We are new on Nginx module development. Currently we encounter an issue as below. Could you please help to check? Thanks in advanced.

Scenario:

add a module to decode/modify parameter on HTTP request. Then pass the updated HTTP request to PHP to be handled as normal.

Question:

How to modify nginx.conf and how to decode/modify HTTP request?



Currently, all examples about nginx module I got are nginx modules handle HTTP request and then provide response to client directly.

nginx.conf

...



location ~ \.php$ {

fastcgi_split_path_info ^(.+\.php)(/.+)$;

# NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini



# With php5-cgi alone:

fastcgi_pass 127.0.0.1:9000;

# With php5-fpm:

fastcgi_pass unix:/var/run/php5-fpm.sock;

fastcgi_index index.php;

include fastcgi_params;

}_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

how to add a module to decode/modify parameter on HTTP request

冠胜 796 April 29, 2014 08:46AM



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

Online Users

Guests: 312
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready