Welcome! Log In Create A New Profile


NginxHttpRewriteModule compiled sequence

February 06, 2014 03:20AM
Hi ,

Is there a way to print all the compiled sequences of a rewrite module as
documented in


This interpreter is a simple stack virtual machine. For example, the

location <http://wiki.nginx.org/NginxHttpCoreModule#location> /download/ {
if <http://wiki.nginx.org/NginxHttpRewriteModule#if> ($forbidden) {
return <http://wiki.nginx.org/NginxHttpRewriteModule#return> 403;
if <http://wiki.nginx.org/NginxHttpRewriteModule#if> ($slow) {
limit_rate <http://wiki.nginx.org/NginxHttpCoreModule#limit_rate> 10k;
rewrite <http://wiki.nginx.org/NginxHttpRewriteModule#rewrite>
^/(download/.*)/media/(.*)\..*$ /$1/mp3/$2.mp3 break

will be compiled into this sequence:

variable $forbidden
checking to zero
recovery 403
completion of entire code
variable $slow
checking to zero
checkings of regular expression
copying "/"
copying $1
copying "/mp3/"
copying $2
copying ".mp3"
completion of regular expression
completion of entire sequence

Ajay K
nginx mailing list
Subject Author Posted

NginxHttpRewriteModule compiled sequence

ajay February 06, 2014 03:20AM

Re: NginxHttpRewriteModule compiled sequence

Maxim Dounin February 06, 2014 07:22AM

Re: NginxHttpRewriteModule compiled sequence

ajay February 07, 2014 09:42PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 216
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready