Re: Issue with multipart response compression.

2014-01-27 Thread Makailol Charls
Thanks for your suggestion . It is possible for me to implement. Regards, Makailol On Mon, Jan 27, 2014 at 11:20 AM, Igor Sysoev wrote: > On Jan 21, 2014, at 9:58 , Makailol Charls wrote: > > Hello > > I use Nginx/1.4.4 as a reverse proxy and my backend webserver generates > multipart response

Re: [Lua] "Hello, world!" from Lua file?

2014-01-27 Thread Yichun Zhang (agentzh)
Hello! On Mon, Jan 27, 2014 at 6:00 AM, Jader H. Silva wrote: > > You need to set the content-type to this location. e.g.: > > add_header Content-Type text/plain; > Alternatively one can set the Content-Type response header directly in Lua (which is more flexible): content_by_lua ' n

AW: nginx seems to proxy only http GET

2014-01-27 Thread Matthias Richter
that is strange because I cannot see any requests in the backend log file. curl requests from command line pop up there though. so curl -X(DELETE|PUT|POST) localhost:8080/api does show requests in the logs, nginx passing them through does not? Thanks, Matthias

Applying NGINX location based on unlisted extension of default file?

2014-01-27 Thread brih
I'm trying to create a second location in NGINX that will only fire for a specific file type. Specifically, I have NGINX acting as a proxy for a server that primarily serves PHP files. There are, however, a bunch of folders that also have ASPX files (more than 120), and I need to use a different co

Re: nginx seems to proxy only http GET

2014-01-27 Thread Jonathan Matthews
On 27 January 2014 17:24, Matthias Richter wrote: > Hi, > > I'm using nginx to offload https to http. That works well but in my > backend only GET Requests seem to get through. For all POST, PUT and > DELETE I only receive a Status 400 with conten "HTTP method POST is not > supported by this URL".

nginx seems to proxy only http GET

2014-01-27 Thread Matthias Richter
Hi, I'm using nginx to offload https to http. That works well but in my backend only GET Requests seem to get through. For all POST, PUT and DELETE I only receive a Status 400 with conten "HTTP method POST is not supported by this URL". Has anybody experienced this before? Thanks Matthias __

Re: [Lua] "Hello, world!" from Lua file?

2014-01-27 Thread Jader H. Silva
Hello. You must use ngx.print instead of print to output into the response body. 2014-01-27 Shohreh > Thanks for the tip. > > After editing nginx.conf thusly... > == > ... > location / { > root html; > index index.html index.

Re: [Lua] "Hello, world!" from Lua file?

2014-01-27 Thread Shohreh
Thanks for the tip. After editing nginx.conf thusly... == ... location / { root html; index index.html index.htm; content_by_lua_file html/hello.lua; add_header Content-Type text/plain; } ... == ... the script simply displays an empty page, with no error

Re: proxy_cache_methods OPTIONS;

2014-01-27 Thread Maxim Dounin
Hello! On Fri, Jan 24, 2014 at 03:33:39PM -0800, Jeroen Ooms wrote: > Is it possible to cache the OPTIONS method? This pages gives exactly > that example: http://www.packtpub.com/article/nginx-proxy > > proxy_cache_methods OPTIONS; > > However, when I try this, nginx writes in the error log: >

Re: [Lua] "Hello, world!" from Lua file?

2014-01-27 Thread Jader H. Silva
Hello. You need to set the content-type to this location. e.g.: add_header Content-Type text/plain; 2014-01-27 Shohreh > Hello > > Now that I have a working Nginx with the ngx_lua module, I'd like to start > learning how to write web scripts. > > The following page doesn't have a basic sample

[Lua] "Hello, world!" from Lua file?

2014-01-27 Thread Shohreh
Hello Now that I have a working Nginx with the ngx_lua module, I'd like to start learning how to write web scripts. The following page doesn't have a basic sample: http://wiki.nginx.org/HttpLuaModule So I used the following... http://yichunzhang.wordpress.com/2010/05/18/a-simple-ngx_lua-example-

Re: [OpenResty] How to start Nginx?

2014-01-27 Thread Shohreh
Thanks, but this is for an appliance, so a virtual machine is too big. Recompiling with "--prefix" solved the problem. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,246792,246862#msg-246862 ___ nginx mailing list nginx@nginx.org http://mail

Re: [OpenResty] How to start Nginx?

2014-01-27 Thread Shohreh
Thanks for the idea, but I had to compile Nginx because the one available in the depot didn't have Lua compiled, and I'd rather compile both Nginx and Lua at the same time. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,246792,246861#msg-246861 _

Re: [OpenResty] How to start Nginx?

2014-01-27 Thread Shohreh
Thanks Yichun. This is what I ended up doing, because "make install DESTDIR=blah" triggered other errors. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,246792,246860#msg-246860 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/

Re: Modifying the request body

2014-01-27 Thread Maxim Dounin
Hello! On Sun, Jan 26, 2014 at 08:55:18PM +0800, Rv Rv wrote: > I have nginx deployed as a proxy server. The client sends a POST > request which needs to be modified before forwarding it to the > origin server. Is there any module / filter available in nginx. > The best I could find was a patc

Re: How can i compile nginx with specific lib linkage

2014-01-27 Thread humank
Maxim Dounin Wrote: --- > Hello! > > On Thu, Jan 23, 2014 at 11:35:44PM -0500, humank wrote: > > > I have customized a new nginx add on module,and the module use an > external > > lib ( mytest.so). > > The method i called in mytest.so is kimtest

Re: X-Frame-Options: Nginx includes header twice

2014-01-27 Thread Jonathan Matthews
On 27 January 2014 02:49, Some Developer wrote: > Seems a bit strange to me that an application framework sets HTTP headers. > Surely this should be left to the HTTP server? What are other peoples > opinions on this? There are many instances where the application is the most knowledgable layer re