Hi, I'm trying to diagnose a problem we have on a rather complex system with an nginx acting as a remote proxy server, where what appears to be a completely empty response is being returned, seemingly from the nginx cache. It's early days yet in my troubleshooting, so this may not actually be the problem, but just in case, I have two questions: 1. Is this actually possible? Will nginx actualby J2R - Nginx Mailing List - English
On 22/03/13 14:11, Maxim Dounin wrote: > This looks like valid regular expression (try pcretest if unsure), but > from maintainability point of view I would recommend to use multiple > normal prefix or exact match locations instead of trying to combine > them into a single regexp. Yes, you're probably right. Maybe I should just put all the repeated stuff in a text file and use inby J2R - Nginx Mailing List - English
On 22/03/13 11:43, Maxim Dounin wrote: > Hello! > > On Fri, Mar 22, 2013 at 11:18:50AM +0000, John Moore wrote: > > [...] > >> Actually, there is one final tweak I'd like. There are a number of >> different locations which I'd like to use the proxy cache for. I cannot >> repeat for each location the block where the cache log is defined (it >> rightly complby J2R - Nginx Mailing List - English
On 22/03/13 11:18, John Moore wrote: > > Actually, there is one final tweak I'd like. There are a number of > different locations which I'd like to use the proxy cache for. I cannot > repeat for each location the block where the cache log is defined (it > rightly complains about duplication). So I have to define it at a server > level instead. If I do this, though, then EVERY reqby J2R - Nginx Mailing List - English
On 18/03/13 11:21, John Moore wrote: > On 17/03/13 23:08, Maxim Dounin wrote: >> Hello! >> >> On Sun, Mar 17, 2013 at 08:08:39PM +0000, John Moore wrote: >> >>> I've used nginx as a reverse proxy server for a long while but I've not >>> tried out the proxy cache until today, and I have to say I'm a little >>> bit confused by what I'm seeing inby J2R - Nginx Mailing List - English
On 17/03/13 23:08, Maxim Dounin wrote: > Hello! > > On Sun, Mar 17, 2013 at 08:08:39PM +0000, John Moore wrote: > >> I've used nginx as a reverse proxy server for a long while but I've not >> tried out the proxy cache until today, and I have to say I'm a little >> bit confused by what I'm seeing in the cache log, and I'm wondering >> whether I've set things up cby J2R - Nginx Mailing List - English
I've used nginx as a reverse proxy server for a long while but I've not tried out the proxy cache until today, and I have to say I'm a little bit confused by what I'm seeing in the cache log, and I'm wondering whether I've set things up correctly. My requirements are actually pretty simple. I have a couple of locations which I want to proxy to another server and cache the results. Thus:by J2R - Nginx Mailing List - English
I'm using nginx (0.7.65) as a reverse proxy in front of a bunch of Tomcat instances. A couple of years ago, following Igor's suggestions on the mailing list, I made a minor change to the configuration to deal with a problem with encoding/decoding with some URLs proxied to Tomcat. I appended a forward slash to the proxy_pass, so instead of having this: proxy_pass http://backend; I had tby J2R - Nginx Mailing List - English
Is there some means of determining how many query parameters are being passed, by looking $args, say? There's a kind of DOS attack which can bring down Java based webapps which do binding of request parameters to properties, and it seems to me that nginx used as a remote proxy server could probably prevent this simply by rejecting requests which had more than x query parameters. _____________by J2R - Nginx Mailing List - English
On 26/11/11 11:29, John Moore wrote: > A customer of mine is running an ancient Windows 2000 Server > installation, on which I have been running an old version of nginx. I > want to upgrade to a more recent version, but nginx 1.1.0 is not > working for me. I get the following in the error log: > > 2011/11/26 11:30:56 25552#26824: > WSAIoctl(SIO_GET_EXTENSION_FUNCTION_POINby J2R - Nginx Mailing List - English
A customer of mine is running an ancient Windows 2000 Server installation, on which I have been running an old version of nginx. I want to upgrade to a more recent version, but nginx 1.1.0 is not working for me. I get the following in the error log: 2011/11/26 11:30:56 25552#26824: WSAIoctl(SIO_GET_EXTENSION_FUNCTION_POINTER, WSAID_TRANSMITPACKETS) failed (10022: An invalid argument was supby J2R - Nginx Mailing List - English
Igor, thanks for the suggestion. This is now working as it should! _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginxby J2R - Nginx Mailing List - English
On 25/11/11 15:34, Igor Sysoev wrote: > Are you sure that Firefox did not get it from cache ? > Pretty sure. Just doing some checking as there are some strange things going on... >> This is 0.6.32 on >> Windows - I don't know whether a more recent version would help? >> > Where have you found such version ? > The first nginx/Windows version was 0.7.52. &gby J2R - Nginx Mailing List - English
On 25/11/11 15:16, Igor Sysoev wrote: > > You can try this, but nginx will scan response body with ISO-8859-1 > trying to convert it to utf-8: > > http { > charset_map iso-8859-1 utf-8 {} > > server { > charset utf-8; > override_charset on; > > Thanks Igor. I tried this, but it's still leaving the encoding as ISO-8859by J2R - Nginx Mailing List - English
I have been trying for some time now to get Tomcat to serve everything with UTF-8 encoding, but some pages keep coming back with ISO-8859-1 encoding. As Tomcat is sitting behind an nginx remote proxy server, I was wondering whether I could configure nginx to override the encoding automatically? I have added 'charset utf-8' in the server block but this by itself obviously doesn't do the trick.by J2R - Nginx Mailing List - English
On 21/11/11 05:30, Joshua Zhu wrote: > > > Did you turn on open_file_cache in your configuration? It's buggy. > No, I didn't. I actually made no change to the configuration other than adding the virtual host. I have, for the moment, solved the problem by moving the root to a different location, with the result that the CSS is now served fine. I think it must be to do with a bug inby J2R - Nginx Mailing List - English
I have spent 2 hours trying to get to the bottom of a problem and am utterly stumped. I am certain it must be something I'm doing wrong, and NOT an nginx problem, but I can't think for the life of me what it might be. What is happening is that nginx is serving up a version of a CSS file which I overwrote a couple of hours ago. It's version 0.7.65 running on Linux. I have a CSS file called temby J2R - Nginx Mailing List - English
On 18/06/11 17:48, Martin Loy wrote: > maybe this link would help > > http://senko.net/en/django-nginx-gunicorn/ > > Thanks, I'll investigate gunicorn, then. J _______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/listinfo/nginxby J2R - Nginx Mailing List - English
For a while now, I've been using nginx with great success as a remote proxy server in front of Tomcat, and also in front of PHP via fastcgi. It's likely that I will require to use it in front of a Django Python web application soon, and I'm just wondering what the easiest way of doing this is likely to be. I've read about a number of different ways of doing this but what I'm most interested iby J2R - Nginx Mailing List - English
On 10/05/11 11:19, Maxim Dounin wrote: > Hello! > > On Tue, May 10, 2011 at 10:31:06AM +0100, John Moore wrote: > > >> I'm using nginx as a remote proxy server in front of some Tomcat >> instances, with pretty high traffic. Suddenly yesterday afternoon we >> started getting the error in the message subject, one I'd never seen >> before, and it's occurredby J2R - Nginx Mailing List - English
I'm using nginx as a remote proxy server in front of some Tomcat instances, with pretty high traffic. Suddenly yesterday afternoon we started getting the error in the message subject, one I'd never seen before, and it's occurred tens of thousands of times since. Now, I've upped the worker_connections count to a much higher figure and the problem has gone away for now. But I'm concerned that iby J2R - Nginx Mailing List - English
On 09/03/11 19:15, Richard Kearsley wrote: > > Can't get much simpler than that lua example... > Sure, the actual OS call is dead simple. Setting nginx up to use lua looks a little trickier than what I needed to do with thttpd, which I could do with the vanilla nginx as comes with Ubuntu. One to explore in the future, though. _______________________________________________ nginxby J2R - Nginx Mailing List - English
On 08/03/11 12:19, agentzh wrote: > > Using ngx_lua [1]: > > location /restart-java-app { > content_by_lua 'os.execute("/bin/restart-my-java-app")'; > } > > But it's blocking, only suitable for personal use ;) > > Thanks for the suggestion. It's probably rather more than I need, though, and looks a little complex to set up. At the momeby J2R - Nginx Mailing List - English
I have a Java web application which, once in a while for reasons I am trying to determine, sometimes becomes unresponsive. I want to give users a simple way of restarting it, via the web, so as I've used ngix a lot in the past, my first thoughts turned to having nginx running on another port, with a URL available which causes a shell script to be run. What would be the easiest, most lightweigby J2R - Nginx Mailing List - English
I want to rewrite all http requests for a host to https, on port 9443 instead of the the standard 443. So I have this in my nginx.conf: server { server_name www.domain.com; listen 80; location / { rewrite ^(.*)$ https://$host:9443$1 permanent; } } server { server_name www.domain.com; listen 9443; location /by J2R - Nginx Mailing List - English