Re: alert: ... pread() read only

2013-11-18 Thread Nikolaos Milas
On 19/11/2013 9:39 πμ, Nikolaos Milas wrote: The system info: Linux myserver.example.com 2.6.32-358.18.1.el6.x86_64 #1 SMP Wed Aug 28 17:19:38 UTC 2013 x86_64 I forgot to mention that this is a VPS running CentOS 6.4 as a VM under KVM. The file system at the VM is ext4 over LVM but I don't

alert: ... pread() read only

2013-11-18 Thread Nikolaos Milas
Hello, We are running a Joomla website loading a google map in an iframe (under NGINX) in the main (home) web page. This is the page mostly visited as it contains almost real-time data to be viewed by clients. The system info: Linux myserver.example.com 2.6.32-358.18.1.el6.x86_64 #1 SMP Wed

Re: limit_req and limit_conn in rewrite modules if statement

2013-11-18 Thread Maxim Dounin
Hello! On Tue, Nov 19, 2013 at 12:35:19AM +, Francis Daly wrote: > On Mon, Nov 18, 2013 at 02:49:27PM -0500, Nam wrote: > > Hi there, > > > I would like to see if it's possible to get limit_conn and limit_req > > working with the rewrite modules if statement. > > Not according to the curre

Re: limit_req and limit_conn in rewrite modules if statement

2013-11-18 Thread Francis Daly
On Mon, Nov 18, 2013 at 02:49:27PM -0500, Nam wrote: Hi there, > I would like to see if it's possible to get limit_conn and limit_req > working with the rewrite modules if statement. Not according to the current documentation. I suspect that patches will be welcome, if they fit the usual criter

Re: will request_uri get passed from cookieless server to 403 page on main server?

2013-11-18 Thread Francis Daly
On Sun, Nov 17, 2013 at 07:21:02PM -0500, Ian Evans wrote: > On 17/11/2013 3:16 PM, Ian M. Evans wrote: Hi there, > >In my current setup, 403 errors are sent to a php file which grabs the > >$_SERVER["REQUEST_URI"], locates the page of the photo on the site, and > >redirects the person to that pa

Re: limit_req and limit_conn in rewrite modules if statement

2013-11-18 Thread Nam
Can you give an example of how I would accomplish the desired if statement I posted? I do not see how i could get map to do that myself. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,244781,244789#msg-244789 ___ nginx mailing list nginx@ngin

Re: rewrite and proxy_pass at the same time in nginx

2013-11-18 Thread Francis Daly
On Mon, Nov 18, 2013 at 03:55:08PM -0500, marianopeck wrote: Hi there, > server > { > location ~ ^/someService(/.*)$ { > proxy_pass https://$1; > } > } What does the error log say? What does the error log say when you change proxy_pass to have 2 slashes and not 3? f -- Fra

Re: limit_req and limit_conn in rewrite modules if statement

2013-11-18 Thread Jonathan Matthews
On 18 November 2013 20:57, Nam wrote: > To elaborate a bit more, in a single location I may end up with something > like this... > > set $Whitelisted "No"; > if ($GeoList1 = allow) { > set $Whitelisted "Yes"; > } > if ($GeoList5 = allow) { > set $Whitelisted "Yes"; > } > if ($http_user_age

Re: nginx with cavium SSL

2013-11-18 Thread jimhowell
Greetings Jacob, We are looking at a similar situation -- did you learn anything to update this post? Thank you. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,233535,244784#msg-244784 ___ nginx mailing list nginx@nginx.org http://mailman.n

Re: limit_req and limit_conn in rewrite modules if statement

2013-11-18 Thread Nam
To elaborate a bit more, in a single location I may end up with something like this... set $Whitelisted "No"; if ($GeoList1 = allow) { set $Whitelisted "Yes"; } if ($GeoList5 = allow) { set $Whitelisted "Yes"; } if ($http_user_agent ~ (googlebot|bingbot)) { set $Whitelisted "Yes"; } if

rewrite and proxy_pass at the same time in nginx

2013-11-18 Thread marianopeck
HI guys. I am trying to make something to work in nginx but I have no luck. I posted in StackOverflow, and no answer. I wish any of you can help me. I paste the SO question here as well: I am using nginx and I need a proxy to redirect some service. From my application, I should be able to do a PO

limit_req and limit_conn in rewrite modules if statement

2013-11-18 Thread Nam
Hello, I would like to see if it's possible to get limit_conn and limit_req working with the rewrite modules if statement. I have seen some discussion about this in the mailing list already saying to use stuff like throwing a 410 code and having that 410 code handled by a @named location that handl

Re: Pass parameters though auth_request directive?

2013-11-18 Thread engenex
Hi Maxim! Your solution worked. Thanks for the fast response. I was able to access the original params through the $_SERVER['REQUEST_URI'] php array as you said. I didn't even have to change my conf. God bless you. I spent the better part of the last 24 hours trying to figure this one out. I

Re: I translated document from English to Japanese

2013-11-18 Thread Vladimir Homutov
On Mon, Nov 18, 2013 at 11:49:14AM +0900, Yuta MASUMOTO wrote: > Hi there, > > I intersted in nginx, but Japanese documents is out of date, > so I will be translate documents from English to Japanese, > but I cannnot find information to translation. > > Right now, I created git repository what docu

Re: Pass parameters though auth_request directive?

2013-11-18 Thread Maxim Dounin
Hello! On Mon, Nov 18, 2013 at 03:40:16AM -0500, engenex wrote: > Hi, > > I am try to implement a simple auth system using nginx, > nginx-auth-request-module and php-fpm. > > I want to do the following: > User requests http://myserver.com/content/file1.zip?key=12345 > > location /content { >

Pass parameters though auth_request directive?

2013-11-18 Thread engenex
Hi, I am try to implement a simple auth system using nginx, nginx-auth-request-module and php-fpm. I want to do the following: User requests http://myserver.com/content/file1.zip?key=12345 location /content { auth_request /auth_http.php; # do some logic in auth_http.php then # depending on