Re: Nginx Upload Progress Module stops functioning once behind reverse-proxy

2015-02-17 Thread Ben Johnson
On 2/16/2015 3:52 PM, Francis Daly wrote: > On Mon, Feb 16, 2015 at 02:55:51PM -0500, Ben Johnson wrote: > > Hi there, > Hi, Francis, and thank you for taking the time to review my question and respond. I value and appreciate your time. >> I've recently compiled nginx-1.

Nginx Upload Progress Module stops functioning once behind reverse-proxy

2015-02-16 Thread Ben Johnson
Hello, I've recently compiled nginx-1.7.10 with a third-party upload-progress tracking module, which is described at http://wiki.nginx.org/HttpUploadProgressModule . This module works perfectly well, until I attempt to put the entire setup behind a reverse-proxy. Below is a simplified configurat

Re: nginx: [emerg] unknown directive "upload_pass" after dist-upgrade from Ubuntu 12.04 LTS to 14.04 LTS

2014-12-15 Thread Ben Johnson
On 12/13/2014 7:10 PM, Valentin V. Bartenev wrote: > On Saturday 13 December 2014 18:58:54 Ben Johnson wrote: > [..] >> Hello, >> >> I apologize for the 4-month delay in responding. :) >> >> In particular, I need to have the ability to track upload progress

Re: nginx: [emerg] unknown directive "upload_pass" after dist-upgrade from Ubuntu 12.04 LTS to 14.04 LTS

2014-12-13 Thread Ben Johnson
On 8/22/2014 7:12 PM, Valentin V. Bartenev wrote: > On Friday 22 August 2014 17:54:22 Ben Johnson wrote: > [..] >> >> Thank you kindly, Valentin. That explains it! >> >> Well, that's a real disappointment. Is it no longer possible for nginx >> to handle

Re: nginx: [emerg] unknown directive "upload_pass" after dist-upgrade from Ubuntu 12.04 LTS to 14.04 LTS

2014-08-22 Thread Ben Johnson
On 8/22/2014 3:05 AM, Valentin V. Bartenev wrote: > On Thursday 21 August 2014 21:02:43 Ben Johnson wrote: >> Hello! >> >> I performed a dist-upgrade, from Ubuntu 12.04 LTS to 14.04 LTS, and once >> the dust had settled, nginx refused to start with: >> &g

Re: nginx: [emerg] unknown directive "upload_pass" after dist-upgrade from Ubuntu 12.04 LTS to 14.04 LTS

2014-08-21 Thread Ben Johnson
On 8/21/2014 9:02 PM, Ben Johnson wrote: > # nginx -V > nginx version: nginx/1.6.0 I should add also that immediately after the upgrade from version 12.04 to 14.04 of my OS, this problem was present, and my nginx version was 1.4.6. The reason for which my current config (quoted above) shows

nginx: [emerg] unknown directive "upload_pass" after dist-upgrade from Ubuntu 12.04 LTS to 14.04 LTS

2014-08-21 Thread Ben Johnson
Hello! I performed a dist-upgrade, from Ubuntu 12.04 LTS to 14.04 LTS, and once the dust had settled, nginx refused to start with: nginx: [emerg] unknown directive "upload_pass" in /etc/nginx/sites-enabled/example.com.vhost:95 The "upload_pass" directive appears to be part of the HttpUploadModul

Re: Defining a default server for when vhost does not exist for requested hostname (including blank hostname), for http and https

2014-03-31 Thread Ben Johnson
On 3/28/2014 1:58 PM, Maxim Dounin wrote: > Nobody care enough to submit a patch. > Likely due to the fact that SNI isn't considered to be an option > for serious SSL-enabled sites anyway due to still limited > client-side support, see here for details: > > http://en.wikipedia.org/wiki/Server_Na

Re: Defining a default server for when vhost does not exist for requested hostname (including blank hostname), for http and https

2014-03-28 Thread Ben Johnson
On 3/28/2014 11:45 AM, Maxim Dounin wrote: > Hello! > > On Fri, Mar 28, 2014 at 02:53:18PM +, Jonathan Matthews wrote: > >> On 28 March 2014 14:31, Ben Johnson wrote: >>> Is there any way to av,oid this certificate being presented, but still >>&g

Defining a default server for when vhost does not exist for requested hostname (including blank hostname), for http and https

2014-03-28 Thread Ben Johnson
Hello, We run multiple vhosts in nginx. Occasionally, a vhost will be mis-configured or disabled (via the website management software that we use), and public requests for the domain will fall-back to nginx's default vhost, which can have very unintended consequences (e.g., an incorrect and comple

Re: Clean-URL rewrite rule with nested "location" and alias directive

2013-11-24 Thread Ben Johnson
On 11/23/2013 12:36 PM, Ben Johnson wrote: > location ^~ /stage/ { >> root /var/www/example.com/private/stage/web/; >> # The files are read from >> /var/www/example.com/private/stage/web/stage/ >> index index.php index.html index.htm; >

Re: Clean-URL rewrite rule with nested "location" and alias directive

2013-11-24 Thread Ben Johnson
On 11/23/2013 3:47 PM, Francis Daly wrote: > On Sat, Nov 23, 2013 at 01:11:46PM -0500, Ben Johnson wrote: >> On 11/23/2013 12:36 PM, Ben Johnson wrote: > > Hi there, > >>> It's bizarre. At some point while meddling with the configuration, >>> requests

Re: Clean-URL rewrite rule with nested "location" and alias directive

2013-11-23 Thread Ben Johnson
On 11/23/2013 12:36 PM, Ben Johnson wrote: > Okay, I'm trying to implement this, but something seems to have gone > terribly awry. I apologize for derailing our progress, but until this is > resolved, I have no way to test your recommendations. > > It's bizarre. At

Re: Clean-URL rewrite rule with nested "location" and alias directive

2013-11-23 Thread Ben Johnson
On 11/21/2013 3:45 PM, Francis Daly wrote: > On Wed, Nov 20, 2013 at 10:31:07PM -0500, Ben Johnson wrote: >> On 11/20/2013 4:10 AM, Francis Daly wrote: > > Hi there, > >>> If you do have free choice in the matter, some things work more easily >>> within

Re: Clean-URL rewrite rule with nested "location" and alias directive

2013-11-20 Thread Ben Johnson
On 11/20/2013 4:10 AM, Francis Daly wrote: >> I think that you're exactly right. I had tried try_files first, but was >> unable to get it to work given that this site a) must be accessed via a >> "subdirectory" relative to the domain-root URL, and b) is comprised of >> files that live in a "priv

Re: Clean-URL rewrite rule with nested "location" and alias directive

2013-11-19 Thread Ben Johnson
On 11/19/2013 3:39 PM, Francis Daly wrote: > On Tue, Nov 19, 2013 at 01:45:15PM -0500, Ben Johnson wrote: >> On 11/19/2013 12:38 PM, Francis Daly wrote: >>> On Tue, Nov 19, 2013 at 10:36:53AM -0500, Ben Johnson wrote: > > Hi there, > >>>> This work

Re: Clean-URL rewrite rule with nested "location" and alias directive

2013-11-19 Thread Ben Johnson
On 11/19/2013 12:38 PM, Francis Daly wrote: > On Tue, Nov 19, 2013 at 10:36:53AM -0500, Ben Johnson wrote: > > Hi there, > >> This works as expected, with one major exception: "clean-URL" rewriting >> does not work. In other words, the homepage (/stage/) loa

Clean-URL rewrite rule with nested "location" and alias directive

2013-11-19 Thread Ben Johnson
Hi! I am attempting to serve a staging website from a directory that is outside of the web-server's document root, while at the same time making the site accessible at a URL that "appears" to be a subdirectory of the top-level domain. (I have to do this so that the SSL certificate for the TLD can

Re: How to disable output buffering with PHP and nginx

2013-10-12 Thread Ben Johnson
On 10/10/2013 2:24 PM, Maxim Dounin wrote: > Hello! > > On Thu, Oct 10, 2013 at 01:35:00PM -0400, itpp2012 wrote: > >>> Correct. One nginx process can handle multiple requests, it's one >>> PHP process which limits you. >> >> Not really, use the NTS version of php not the TS, and use a pool a

Re: How to disable output buffering with PHP and nginx

2013-10-10 Thread Ben Johnson
On 10/10/2013 11:26 AM, Maxim Dounin wrote: > Hello! > > On Thu, Oct 10, 2013 at 11:13:40AM -0400, Ben Johnson wrote: > > [...] > >> Well, after all of the configuration changes, both to nginx and PHP, the >> solution was to add the following header to the r

Re: How to disable output buffering with PHP and nginx

2013-10-10 Thread Ben Johnson
On 10/8/2013 11:48 AM, Maxim Dounin wrote: > Hello! > > On Mon, Oct 07, 2013 at 10:57:14PM -0400, B.R. wrote: > > [...] > >> I then noticed on the capture that PHP was rightfully sending the content >> in 2 parts as expected but somehow nginx was still waiting for the last >> parto to arrive b

Re: How to disable output buffering with PHP and nginx

2013-10-07 Thread Ben Johnson
On 9/16/2013 1:19 PM, Ben Johnson wrote: > Hello, > > In an effort to resolve a different issue, I am trying to confirm that > my stack is capable of servicing at least two simultaneous requests for > a given PHP script. > > In an effort to confirm this, I have written a s

How to disable output buffering with PHP and nginx

2013-09-16 Thread Ben Johnson
Hello, In an effort to resolve a different issue, I am trying to confirm that my stack is capable of servicing at least two simultaneous requests for a given PHP script. In an effort to confirm this, I have written a simple PHP script that runs for a specified period of time and outputs the numbe

Re: 504 Gateway Time-out when calling curl_exec() in PHP with SSL peer verification (CURLOPT_SSL_VERIFYPEER) off

2013-08-28 Thread Ben Johnson
On 8/26/2013 11:25 AM, Lukas Tribus wrote: > Hi! > > >> If this were the root cause, wouldn't the cURL call fail in the way way, >> regardless of the CURLOPT_SSL_VERIFYPEER value? In other words, it >> doesn't seem like changing this cURL option would change the number of >> backend processes r

Re: 504 Gateway Time-out when calling curl_exec() in PHP with SSL peer verification (CURLOPT_SSL_VERIFYPEER) off

2013-08-26 Thread Ben Johnson
Thanks for the suggestion, itpp2012. I tried adding those directives to the batch script that starts php-cgi.exe, but the problem persists. What I find strange is that the problem occurs only when I set peer verification to false: curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); When I set this

Re: 504 Gateway Time-out when calling curl_exec() in PHP with SSL peer verification (CURLOPT_SSL_VERIFYPEER) off

2013-08-23 Thread Ben Johnson
On 8/23/2013 3:23 PM, Maxim Dounin wrote: > Hello! > > On Fri, Aug 23, 2013 at 02:41:43PM -0400, Ben Johnson wrote: > >> >> >> On 8/23/2013 2:05 PM, Maxim Dounin wrote: >>> Hello! >>> >>> On Fri, Aug 23, 2013 at 12:46:44PM -0400,

Re: 504 Gateway Time-out when calling curl_exec() in PHP with SSL peer verification (CURLOPT_SSL_VERIFYPEER) off

2013-08-23 Thread Ben Johnson
On 8/23/2013 2:05 PM, Maxim Dounin wrote: > Hello! > > On Fri, Aug 23, 2013 at 12:46:44PM -0400, Ben Johnson wrote: > >> Hello, >> >> I'm seeing a strange problem with nginx (1.5.2 on Windows) and PHP >> (5.4.8 on Windows). >> >> Whenever

504 Gateway Time-out when calling curl_exec() in PHP with SSL peer verification (CURLOPT_SSL_VERIFYPEER) off

2013-08-23 Thread Ben Johnson
Hello, I'm seeing a strange problem with nginx (1.5.2 on Windows) and PHP (5.4.8 on Windows). Whenever I make a cURL request with PHP's curl_exec() function to a secure URL (https protocol), and I disable peer verification, like this curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); nginx respon

nginx on Windows returns 504 Gateway Timeout when attempting to POST form using cURL via PHP

2013-08-05 Thread Ben Johnson
Hello, I have a fairly simple PHP script that I have used in the past, under Apache, to "simulate an HTTP form POST". For some reason, when I attempt to do the same under nginx, the browser hangs until some timeout is reached, at which point nginx returns a "504 Gateway Timeout" response to the b

Re: Possible to overwrite a fastcgi_param "later", once a location block has already been closed?

2013-07-09 Thread Ben Johnson
On 7/9/2013 5:47 PM, Francis Daly wrote: > On Tue, Jul 09, 2013 at 04:48:27PM -0400, Ben Johnson wrote: > > Hi there, > >> I am working with a server configuration that is partly outside of my >> control, > > I suspect that that's not the intended use c

Possible to overwrite a fastcgi_param "later", once a location block has already been closed?

2013-07-09 Thread Ben Johnson
Hello, I am working with a server configuration that is partly outside of my control, and have a need to overwrite a fastcgi_param "after" the directives that are outside of my control have already been included. The basics of the configuration are: --

What is the purpose of this "location {}" block?

2013-07-01 Thread Ben Johnson
I'm using ISPConfig3 and the default nginx vhost configuration template includes the following: location ~ \.php$ { try_files /dcc5f1e779623ed233ada555c6142e42.htm @php; } location @php { try_files $uri =404; include /etc/nginx/fastcgi_params; fastcgi_pass unix:/var/lib/php5-fpm/w

Re: Cannot totally switch off caching

2013-07-01 Thread Ben Johnson
On 7/1/2013 4:33 AM, imanenkov wrote: > For some testing I need to switch off a nginx caching (nginx + php-fpm). Now > I have a trouble - when I request a server (PHP app) first time, response > generated about 10 sec (its ok), but when a request a server another time > (during approx 1-2 mins fr

Re: Trouble adding /pma location to all virtual hosts

2013-06-28 Thread Ben Johnson
On 6/27/2013 7:13 PM, Francis Daly wrote: > On Thu, Jun 27, 2013 at 01:02:30PM -0400, Ben Johnson wrote: >> On 6/27/2013 12:42 PM, Ben Johnson wrote: > > Hi there, > >>> I don't want PMA (anything within the /pma/ location) to be accessible >>> over

Re: Trouble adding /pma location to all virtual hosts

2013-06-27 Thread Ben Johnson
On 6/27/2013 1:15 PM, B.R. wrote: > Hello, > > On Thu, Jun 27, 2013 at 1:02 PM, Ben Johnson <mailto:b...@indietorrent.org>> wrote: > > > > On 6/27/2013 12:42 PM, Ben Johnson wrote: > > I don't want PMA (anything within the /pma/ location)

Re: Trouble adding /pma location to all virtual hosts

2013-06-27 Thread Ben Johnson
On 6/27/2013 12:42 PM, Ben Johnson wrote: > I don't want PMA (anything within the /pma/ location) to be accessible > over a plaintext connection. In other words, I wish to force HTTPS. > > Do I need to add something something like this to the location block? > &

Re: Trouble adding /pma location to all virtual hosts

2013-06-27 Thread Ben Johnson
On 6/27/2013 12:42 PM, Ben Johnson wrote: > I'm not the type to accept "good enough". I want it to be perfect :). > > What would be your preferred course of action to eliminate the internal > rewrite and instead perform an external redirect for /pma, /PMA, and >

Re: Trouble adding /pma location to all virtual hosts

2013-06-27 Thread Ben Johnson
On 6/26/2013 5:33 PM, Francis Daly wrote: > On Wed, Jun 26, 2013 at 10:22:21AM -0400, Ben Johnson wrote: > > Hi there, > >> I was able to accomplish my objective with some help from the tutorial >> at: > > It's good that you've got it working now. &g

Re: Trouble adding /pma location to all virtual hosts

2013-06-26 Thread Ben Johnson
I was able to accomplish my objective with some help from the tutorial at: http://www.howtoforge.com/running-phpmyadmin-on-nginx-lemp-on-debian-squeeze-ubuntu-11.04 location /pma { root /var/www/; index index.php index.html index.htm; location ~ ^/pma/(.+\.php)$ { try_files $uri =4

Trouble adding /pma location to all virtual hosts

2013-06-25 Thread Ben Johnson
Hello, I'm trying to accomplish something that feels like it should be very simple, yet I'm struggling. I'm new to nginx, and I feel a bit lost as I try to "translate" everything that I've done in Apache over the years to nginx. So, please bear with me. I've done my research and asking this list f

Re: Using try_files while forcing a trailing-slash in the URL

2013-06-20 Thread Ben Johnson
On 6/18/2013 5:55 PM, Francis Daly wrote: > On Tue, Jun 18, 2013 at 03:22:04PM -0400, Ben Johnson wrote: > > Hi there, Hi, Francis! I really appreciate your help and your time. Thanks for replying in such detail. >> The try_files directive is brilliant. The only problem I'

Using try_files while forcing a trailing-slash in the URL

2013-06-18 Thread Ben Johnson
Hello, Brand new to nginx and loving it so far. Thanks to all who contribute to the project. The try_files directive is brilliant. The only problem I'm having is that I would like to be able to force a trailing-slash, a la "rewrite", on the fallback URL. The try_files documentation at http://wik