POST method on "static" files

François Battail fb at
Fri Dec 3 12:51:53 MSK 2010

Dear list,

This topic has already been discussed (see:,2414,47301 ) but so far the patch of
Igor has not been applied to the 0.8.X or 0.9.X branch.

I use a lot SSI to mix static and dynamic files, for example:

main page:

<!--#include virtual="header.html"-->
<form method="post" action "search.html">
  <label for="q">Search: <input type="text" id="q" /></label>
<!--#include virtual="footer.html"-->

search page (POST):

<!--#include virtual="header.html"-->
<!--#include virtual="/ssi/SpecificNginxModuleProcessing"-->
<!--#include virtual="footer.html"-->


location /ssi
  MyModuleHandler on;

So the 405 - Not allowed error code is a huge limitation to do things
like that.

The patch is nearly two years old and I don't see how to integrate it on
0.9.X, any advice about how to do that? Is there any chance that this
feature goes mainstream on the development branch?

Best regards

More information about the nginx mailing list