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

2014-01-24 Thread wishmaster
--- Original message --- From: "Some Developer" Date: 25 January 2014, 06:04:10 > I'm running Nginx 1.4.4 on Ubuntu 12.04 and have added the X-Frame-Options > header for one of my sites but in testing it appears that Nginx includes this > itself in addition to user configured headers

Re: proxy_cache_methods OPTIONS;

2014-01-24 Thread wishmaster
I think you should use official site. http://nginx.org/en/docs/http/ngx_http_proxy_module.html What is your proxy_cache_methods value? --- Original message --- From: "Jeroen Ooms" Date: 25 January 2014, 01:34:11 > Is it possible to cache the OPTIONS method? This pages gives exactly > th

X-Frame-Options: Nginx includes header twice

2014-01-24 Thread Some Developer
I'm running Nginx 1.4.4 on Ubuntu 12.04 and have added the X-Frame-Options header for one of my sites but in testing it appears that Nginx includes this itself in addition to user configured headers. Basically I want X-Frame-Options to be DENY but when I set that header Nginx also sends an X-Fr

Re: Using 2 intersection of conditions for proxy_cache_bypass (avoiding logical if/and)

2014-01-24 Thread B.R.
Hello, On Sat, Jan 25, 2014 at 3:40 AM, Jeroen Ooms wrote: > This looks like a fragile solution. You're basically simulating an > "if", but I don't think we should assume that nginx will resolve all > maps in the defined order, as would be using "if". > > ​*snip* > > Maybe someone from the nginx

Re: Using 2 intersection of conditions for proxy_cache_bypass (avoiding logical if/and)

2014-01-24 Thread António P . P . Almeida
map $http_cache_control$request_method $no_cache { default 0; ~^.+GET$ 1; } proxy_cache_methods POST; proxy_cache_bypass $no_cache; proxy_no_cache $no_cache; appa -- Forwarded message -- From: Jeroen Ooms Date: Fri, Jan 24, 2014 at 9:45 PM Subject: Using 2 intersec

Re: Using 2 intersection of conditions for proxy_cache_bypass (avoiding logical if/and)

2014-01-24 Thread Jeroen Ooms
On Fri, Jan 24, 2014 at 1:04 PM, B.R. wrote: > Does the following work? This looks like a fragile solution. You're basically simulating an "if", but I don't think we should assume that nginx will resolve all maps in the defined order, as would be using "if". The nginx documentation for HttpMapMo

proxy_cache_methods OPTIONS;

2014-01-24 Thread Jeroen Ooms
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: [warn] 7243#0: invalid value "OPTIONS" in ... ___

Re: Using 2 intersection of conditions for proxy_cache_bypass (avoiding logical if/and)

2014-01-24 Thread B.R.
Hello, On Fri, Jan 24, 2014 at 9:45 PM, Jeroen Ooms wrote: > However, this bypasses the cache when either $http_cache_control OR > $is_get is set. How can I achieve to set proxy_cache_bypass when both > http_cache_control AND $is_get are set? > ​The logic you wish imply using a single variable i

Using 2 intersection of conditions for proxy_cache_bypass (avoiding logical if/and)

2014-01-24 Thread Jeroen Ooms
I use nginx to cache both GET and POST requests. I want to use proxy_cache_bypass to allow users to bypass the cache, but ONLY for GET requests. POST requests should always be cached. I tried this: map $request_method $is_get { default: ""; GET "true"; } proxy_cache_methods POST; proxy_cache_b

Re: [OpenResty] How to start Nginx?

2014-01-24 Thread Yichun Zhang (agentzh)
Hello! On Fri, Jan 24, 2014 at 6:43 AM, Shohreh wrote: > Using OpenResty, I compiled and installed a Lua-capable Nginx in /tmp so I > could experiment with it before replacing the current Nginx that was > installed through apt-get. > > However, since files are located in non-standard locations, Ng

Re: [OpenResty] How to start Nginx?

2014-01-24 Thread Styopa Semenukha
Also, in Debian you can use apt-file to find the necessary lib: aptitude install apt-file && apt-file update apt-file search libluajit or apt-file search -x 'libluajit.*\.so$' On Friday, January 24, 2014 09:43:55 AM Shohreh wrote: > Hello > > Using OpenResty, I compiled and installed a Lua-capabl

Re: Understanding location blocks and try files

2014-01-24 Thread AD7six
> > I did also try using the front controller as a 404 handler which worked > > exactly how I am trying to get things to work _except_ of course everything > > from the front controller is a http 404. > Why "of course"? > http://nginx.org/r/error_page I said "of course" as when processed as a 40

Re: [OpenResty] How to start Nginx?

2014-01-24 Thread Jim Ohlstein
On 1/24/14, 9:55 AM, Reinis Rozitis wrote: ./nginx: error while loading shared libraries: libluajit-5.1.so.2: cannot open shared object file: No such file or directory How should configure Debian so that Nginx find the files it needs? You can always write 'ldd nginx' (also for every other exe

Re: How can i compile nginx with specific lib linkage

2014-01-24 Thread Maxim Dounin
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 method. > How can i configure the ./configure file and Makefile to prevent the error " > u

Re: [OpenResty] How to start Nginx?

2014-01-24 Thread Reinis Rozitis
./nginx: error while loading shared libraries: libluajit-5.1.so.2: cannot open shared object file: No such file or directory How should configure Debian so that Nginx find the files it needs? You can always write 'ldd nginx' (also for every other executable on linux) to see where the librarier

[OpenResty] How to start Nginx?

2014-01-24 Thread Shohreh
Hello Using OpenResty, I compiled and installed a Lua-capable Nginx in /tmp so I could experiment with it before replacing the current Nginx that was installed through apt-get. However, since files are located in non-standard locations, Nginx can't find them:

Re: SSL behaviour with multiple server blocks for same port

2014-01-24 Thread Pankaj Mehta
Thanks Maxim, very helpful. Pankaj On 23 January 2014 11:49, Maxim Dounin wrote: > Hello! > > On Thu, Jan 23, 2014 at 11:17:42AM +, Pankaj Mehta wrote: > > > Hi, > > > > I am struggling to get any documented reference for my problem in nginx > > docs. Hope someone can help before I delve i

Re: Images Aren't Displaying When Perl Interpreter Is Enabled

2014-01-24 Thread Francis Daly
On Thu, Jan 23, 2014 at 11:33:56PM -0500, MasterMind wrote: Hi there, > That's not really possible since the awstats is password protected. I think the question wasn't intended to be "can I have access to your private site", but was rather "what is the url of an image request which does not resp