Re: Accessing HTTP request headers in nginx module

2014-03-27 Thread Mapper Uno
Thanks for reply. However, I am still not clear how to access the "custom" headers in module handler. Pls see my comments inline. B.R. wrote in post #1141281: > In nginx, you have the http_ embedded variable in the core > module >

Re: Accessing HTTP request headers in nginx module

2014-03-27 Thread B.R.
In nginx, you have the http_ embedded variable in the core module to access HTTP headers. You can build the logic the way you want (through mapor directives from the rewrite mo

Accessing HTTP request headers in nginx module

2014-03-27 Thread Mapper Uno
Hi, I am writing a small nginx module that needs to get/parse HTTP request header and depending on it's value, needs to be do something. ex. curl -X POST -H "OPERATION: add" http://localhost:80/calc to add 2 numbers ex. curl -X POST -H "OPERATION: divide" http://localhost:80/calc to divide 2

Re: Core dump messages in /var/log/messages !!

2014-03-27 Thread shahzaib shahzaib
Thanks for help guyz. :-) Regards. Shahzaib On Thu, Mar 27, 2014 at 12:04 PM, Lukas Tribus wrote: > Hi, > > > > One quick question, i've updated nginx to 1.4.7 with http_mp4_module. > > What if i go with the same config as before ? i.e > > That should work, as all you really need to do is to u

RE: Core dump messages in /var/log/messages !!

2014-03-27 Thread Lukas Tribus
Hi, > One quick question, i've updated nginx to 1.4.7 with http_mp4_module. > What if i go with the same config as before ? i.e That should work, as all you really need to do is to use the "mp4;" keyword. (I was not aware that config keyword is actually exactly the same between the third party

Re: Build nginx on Mac OS X mavericks

2014-03-27 Thread Kevin Worthington
Great, I'm glad it helped. Best regards, Kevin -- Kevin Worthington kworthing...@gmail.com http://kevinworthington.com/ http://twitter.com/kworthington On Thu, Mar 27, 2014 at 12:45 PM, Kunal Pariani wrote: > Yep, we do have some local and 3rd party patches. But still not sure why > it doesn't

Re: Nginx not detecting the root location from config for Rails 3.2 app

2014-03-27 Thread emclab
We use sub uri and symlink. That's why passenger_base_uri is needed. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,248743,248790#msg-248790 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Build nginx on Mac OS X mavericks

2014-03-27 Thread Kunal Pariani
Yep, we do have some local and 3rd party patches. But still not sure why it doesn't build on mac and throws that error. Same code with patches builds fine on ubuntu linux. @Kevin: Thats what i followed for building the latest nginx and that worked well. Great post. Thanks -Kunal On Thu, Mar 27,

Re: SSL session cache lifetime vs session ticket lifetime

2014-03-27 Thread Maxim Dounin
Hello! On Wed, Mar 26, 2014 at 01:34:19PM +0400, kyprizel wrote: > will be "log_alloc_failures" better? I think something like "log_nomem" will be good enough. Patch: # HG changeset patch # User Maxim Dounin # Date 1395937285 -14400 # Thu Mar 27 20:21:25 2014 +0400 # Node ID 2cc8b9fc7efbf

Re: Build nginx on Mac OS X mavericks

2014-03-27 Thread Kevin Worthington
I wrote up a how to that might help as well: http://kevinworthington.com/nginx-for-mac-os-x-mavericks-in-2-minutes/ Best regards, Kevin -- Kevin Worthington kworthing...@gmail.com http://kevinworthington.com/ http://twitter.com/kworthington On Thu, Mar 27, 2014 at 7:17 AM, Maxim Dounin wrote:

Re: 404 on Prestashop 1.5 under nginx

2014-03-27 Thread Dougadan
Thanks very much. I have been working on this all morning. After your message, there was a load of updates in 1.6, more than 65 modules, including PayPal. I was hoping, but it didn't fix the error. You were directly on target, becuase it called up the order-confirmation.php. So I uploaded these fr

Re: Core dump messages in /var/log/messages !!

2014-03-27 Thread shahzaib shahzaib
Hello, I monitored the kernel logs (/var/log/messages) for while and not found a single error now. Psuedo streaming is also working with the same config. Thanks for quick help :-) But still waiting for the QUICK QUESTION's answer. Regards. Shahzaib On Thu, Mar 27, 2014 at 6:15 PM, sh

Re: Core dump messages in /var/log/messages !!

2014-03-27 Thread shahzaib shahzaib
Ohhh. THANKS a lot for explaining me that. :-) Sorry a silly job from my end . I'll monitor logs for while and let you know about the progress. I had a quick question in previous reply. Could you please check that one ? Regards. Shahzaib On Thu, Mar 27, 2014 at 6:13 PM, Maxim Dounin wrote: >

Re: Core dump messages in /var/log/messages !!

2014-03-27 Thread Maxim Dounin
Hello! On Thu, Mar 27, 2014 at 06:08:44PM +0500, shahzaib shahzaib wrote: > I upgraded nginx to nginx-1.4.7 and then issued the command nginx -s > reload. Maybe nginx -s reload didn't actually used the latest binary. Well, > now i killed all other nginx using following command : > > killall -9 n

Re: Core dump messages in /var/log/messages !!

2014-03-27 Thread shahzaib shahzaib
I upgraded nginx to nginx-1.4.7 and then issued the command nginx -s reload. Maybe nginx -s reload didn't actually used the latest binary. Well, now i killed all other nginx using following command : killall -9 nginx nginx (to start new binary) On Thu, Mar 27, 2014 at 6:03 PM, Maxim Dounin wr

Re: Core dump messages in /var/log/messages !!

2014-03-27 Thread Maxim Dounin
Hello! On Thu, Mar 27, 2014 at 05:32:08PM +0500, shahzaib shahzaib wrote: > You can check the following version now : > > [root@DNTX002 nginx-1.4.7]# nginx -V > nginx version: nginx/1.4.7 > built by gcc 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) > configure arguments: --with-http_mp4_module --with-h

Re: How to send proxy cache status to backend server?

2014-03-27 Thread Maxim Dounin
Hello! On Thu, Mar 27, 2014 at 05:08:31PM +0530, Makailol Charls wrote: > Hi, > > Would it be possible to add this as new feature? > > Is there some other alternative ? Actually based on this header value I > want to select named based location. Response headers of expires cached responses are

Re: Core dump messages in /var/log/messages !!

2014-03-27 Thread shahzaib shahzaib
You can check the following version now : [root@DNTX002 nginx-1.4.7]# nginx -V nginx version: nginx/1.4.7 built by gcc 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) configure arguments: --with-http_mp4_module --with-http_flv_module --with-file-aio --sbin-path=/usr/local/sbin --with-debug Still the /var

Re: Core dump messages in /var/log/messages !!

2014-03-27 Thread shahzaib shahzaib
One quick question, i've updated nginx to 1.4.7 with http_mp4_module. What if i go with the same config as before ? i.e server { listen 80; server_name storage10.domain.com storage10.gear3rd.com storage10.gear3rd.net; client_max_body_size 800m; # limit_rate 250k;

Re: 404 on Prestashop 1.5 under nginx

2014-03-27 Thread tonimarmol
That paypal module I think it not compatible with Prestashop 1.6 because it's using order-confirmation.php file and this file is deleted on PS 1.6. I think the module will be updated soon... Anyways, have a look on Prestashop 1.5 and create the same file: order-confirmation.php http://forum.ngi

Re: Core dump messages in /var/log/messages !!

2014-03-27 Thread shahzaib shahzaib
Thanks Lukas, now i saw these errors in /var/log/messages. Also due to 3rd party module ? Mar 27 12:04:47 DNTX002 kernel: nginx[8190]: segfault at 40174353c ip 0046a482 sp 7fff1fd93810 error 4 in nginx[40+92000] Mar 27 12:04:47 DNTX002 xinetd[6599]: START: nrpe pid=9442 from=209.59

RE: Core dump messages in /var/log/messages !!

2014-03-27 Thread Lukas Tribus
Hi, > [root@DNTX002 nginx-1.2.1]# nginx -V  > nginx version: nginx/1.2.1  > built by gcc 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)  > configure arguments: --add-module=/root/nginx_mod_h264_streaming-2.2.7  > --with-http_flv_module --with-file-aio --sbin-path=/usr/local/sbin  > --with-debug nginx_m

Re: 404 on Prestashop 1.5 under nginx

2014-03-27 Thread Dougadan
Thanks. Yes, under SEO & URLS, the Order Confirmation has a friendly URL, and PayPal module does not have any page for Order confirmation without a friendly URL. Under SEO & URL, Order Confirmation is going to a default Prestashop page, order-confirmation. After payment is completed in PayPal, whe

Re: Core dump messages in /var/log/messages !!

2014-03-27 Thread shahzaib shahzaib
we're using nginx for streaming videos like youtube.com. Usually it is 5000 concurrent connections on the server. Should we upgrde to 1.4.7 . It is stable ? On Thu, Mar 27, 2014 at 4:38 PM, Lukas Tribus wrote: > > Thats not the complete output of -V (capital letter). Either you > > truncated t

Re: How to send proxy cache status to backend server?

2014-03-27 Thread Makailol Charls
Hi, Would it be possible to add this as new feature? Is there some other alternative ? Actually based on this header value I want to select named based location. Thanks, Makailol On Thu, Mar 27, 2014 at 5:02 PM, Maxim Dounin wrote: > Hello! > > On Thu, Mar 27, 2014 at 03:01:22PM +0530, Maka

Re: Core dump messages in /var/log/messages !!

2014-03-27 Thread shahzaib shahzaib
[root@DNTX002 nginx-1.2.1]# nginx -V nginx version: nginx/1.2.1 built by gcc 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) configure arguments: --add-module=/root/nginx_mod_h264_streaming-2.2.7 --with-http_flv_module --with-file-aio --sbin-path=/usr/local/sbin --with-debug On Thu, Mar 27, 2014 at 4:36

RE: Core dump messages in /var/log/messages !!

2014-03-27 Thread Lukas Tribus
> Thats not the complete output of -V (capital letter). Either you > truncated the output by yourself or you sent us the output of -v. > > Please send the complete output of "nginx -V", where the V is a > capital letter. > > > Also compile nginx without third party modules. And, also important, u

RE: Core dump messages in /var/log/messages !!

2014-03-27 Thread Lukas Tribus
> nginx -V > nginx version: nginx/1.2.8 Thats not the complete output of -V (capital letter). Either you truncated the output by yourself or you sent us the output of -v. Please send the complete output of "nginx -V", where the V is a capital letter. Also compile nginx without third party mod

Re: How to send proxy cache status to backend server?

2014-03-27 Thread Maxim Dounin
Hello! On Thu, Mar 27, 2014 at 03:01:22PM +0530, Makailol Charls wrote: > Hi Maxim, > > Apart from passing cache status to backend, would it be possible to send > some other headers which are stored in cache? > > For example, If backed sets header "Foo : Bar" , which is stored in cache. > Now w

Re: Core dump messages in /var/log/messages !!

2014-03-27 Thread shahzaib shahzaib
I enabled debugging and following is the error_log : 2014/03/27 15:26:09 [debug] 8185#0: *2118538 http write filter: l:0 f:1 s:141632 2014/03/27 15:26:09 [debug] 8185#0: *2118538 http write filter limit 131072 2014/03/27 15:26:09 [debug] 8185#0: *2118538 writev: 131072 2014/03/27 15:26:09 [debug]

Re: 404 on Prestashop 1.5 under nginx

2014-03-27 Thread tonimarmol
You must go to "SEO & URLS" under "Preferences" tab, and add all pages/sections/modules that don't have a friendly url. (Press the add button, and it will show you the pages without a friendly url) Maybe you need to add the SEO URL of a payment module. Posted at Nginx Forum: http://forum.nginx.o

Re: Core dump messages in /var/log/messages !!

2014-03-27 Thread shahzaib shahzaib
sorry the same issue have found with nginx-1.2.1 :( On Thu, Mar 27, 2014 at 4:16 PM, shahzaib shahzaib wrote: > nginx -V > nginx version: nginx/1.2.8 > > > I have found not a single issue with 1.2.1 but all other versions have > some kind of issue. > > Regards. > Shahzaib > > > On Thu, Mar 27, 2

Re: Build nginx on Mac OS X mavericks

2014-03-27 Thread Maxim Dounin
Hello! On Wed, Mar 26, 2014 at 06:33:56PM -0700, Kunal Pariani wrote: > Hello, > Has anyone tried building nginx code on Mac ? I get the following error > while building. Have installed pcre and other needed libraries > > *src/mail/ngx_mail_handler.c:1152:30: **error: **use of undeclared > ident

Re: Core dump messages in /var/log/messages !!

2014-03-27 Thread shahzaib shahzaib
nginx -V nginx version: nginx/1.2.8 I have found not a single issue with 1.2.1 but all other versions have some kind of issue. Regards. Shahzaib On Thu, Mar 27, 2014 at 4:15 PM, Lukas Tribus wrote: > Hi, > > > > Mar 27 08:05:44 DNTX014 abrt[10150]: Saved core dump of pid 5803 > > (/usr/local

RE: Core dump messages in /var/log/messages !!

2014-03-27 Thread Lukas Tribus
Hi, > Mar 27 08:05:44 DNTX014 abrt[10150]: Saved core dump of pid 5803  > (/usr/local/sbin/nginx) to  > /var/spool/abrt/ccpp-2014-03-27-12:05:44-5803 (60538880 bytes)  >  >  > Could someone tell me what is that ?  Its a crash. Provide output of "/usr/local/sbin/nginx -V" and check: http://ngin

Re: 404 on Prestashop 1.5 under nginx

2014-03-27 Thread Dougadan
Hi tonimarmol, can you elaborate. I'm having this issue on fresh install of 1.6. Under SEO & URL the Order Confirmation is going to a default Prestashop page, order-confirmation. Apparently there is already a default page where customers should be redirected after purchase. Where would I change? T

Re: nginx ssl certificate via variable

2014-03-27 Thread Jonathan Matthews
On 26 March 2014 13:03, stremovsky wrote: > Hello ! > > When it will be possible to use variables with ssl_certificate in nginx > configuration ? > > It has been discussed several times already in the passed. For example > here: > > http://forum.nginx.org/read.php?29,235397,235408 > http://serverf

Re: Core dump messages in /var/log/messages !!

2014-03-27 Thread Maxim Dounin
Hello! On Thu, Mar 27, 2014 at 12:37:29PM +0500, shahzaib shahzaib wrote: > Mar 27 08:05:44 DNTX014 abrt[10150]: Saved core dump of pid 5803 > (/usr/local/sbin/nginx) to /var/spool/abrt/ccpp-2014-03-27-12:05:44-5803 > (60538880 bytes) > > > Could someone tell me what is that ? http://wiki.ngin

Re: How to send proxy cache status to backend server?

2014-03-27 Thread Makailol Charls
Hi Maxim, Apart from passing cache status to backend, would it be possible to send some other headers which are stored in cache? For example, If backed sets header "Foo : Bar" , which is stored in cache. Now when cache is expired , request will be sent to backend. At that time can we send the val

Core dump messages in /var/log/messages !!

2014-03-27 Thread shahzaib shahzaib
Mar 27 08:05:44 DNTX014 abrt[10150]: Saved core dump of pid 5803 (/usr/local/sbin/nginx) to /var/spool/abrt/ccpp-2014-03-27-12:05:44-5803 (60538880 bytes) Could someone tell me what is that ? Regards. Shahzaib ___ nginx mailing list nginx@nginx.org htt

Home Based Medical Services Vs Medical Billing Companies

2014-03-27 Thread Haward Backmanh
With an increase in demand of medical billing and coding professionals, many professionals have taken up the job of providing these services from home. Though these services may seem to be quite cheap, there are a lot of difficulties that a healthcare service provider might face with these home bas