Re: Reverse proxy to QNAP does not work

2015-12-30 Thread Francis Daly
esponse; that response content may lead to more requests for css and jpg and the like content. If the initial response is 404, there is unlikely to be a follow-up request. Good luck with it, f -- Francis Dalyfran...@daoine.org ___ ngi

Re: 403 forbidden with lynx www browser

2015-11-23 Thread Francis Daly
On Mon, Nov 23, 2015 at 10:23:20AM +1100, Sylvain BERTRAND wrote: > On Sun, Nov 22, 2015 at 05:25:11PM +0000, Francis Daly wrote: Hi there, > > Probably they have configured their servers to deny any request that > > includes "libwww" in the User-Agent. > > I'm

Re: 400 Error on % !!

2015-11-23 Thread Francis Daly
s followed by two hexadecimal characters, which should mean "it is correctly encoded". If you wanted nginx to be this front-end web service, I think that you would need code-level changes in your version to get it to accept the broken input. It is not "

Re: Reverse proxy to QNAP does not work

2015-11-29 Thread Francis Daly
o that it believes that its base url is /nas/ and not /, on the local server. Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: PHP and CGI on UserDir

2015-11-29 Thread Francis Daly
e handled by processing *this* file through *that* fastcgi server (or whatever is appropriate). Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx failing to ask for PEM SSL key password

2015-11-18 Thread Francis Daly
wn system which does the equivalent of ./passwordscript > passwordfile service nginx start echo random > passwordfile at the appropriate times. I don't see how your system security is enhanced, if you do anything other than manually type in the password each time it is needed. Good luck

Re: Selection of secure virtual servers

2015-11-18 Thread Francis Daly
On Mon, Nov 16, 2015 at 04:51:29PM +0300, Maxim Dounin wrote: > On Sun, Nov 15, 2015 at 12:51:56PM +0000, Francis Daly wrote: > > On Fri, Nov 13, 2015 at 03:37:28PM +0100, Joó Ádám wrote: Hi there, > > > I would like to terminate TLS connections arriving at the default > >

Re: Absolute rather than relative times in expires directives

2015-11-18 Thread Francis Daly
xpires; (in the right parts of the config file) might do some of what you want. Probably you will have to adjust some of those numbers to match "local midnight" or "UTC midnight"; and possibly you will want to adjust the regex to allow for the local timezone offset -- see the $time_i

Re: 403 forbidden with lynx www browser

2015-11-22 Thread Francis Daly
ist can do about it. f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: checking headers

2016-05-31 Thread Francis Daly
On Tue, May 31, 2016 at 12:33:56PM -0400, Larry Martell wrote: > On Tue, May 31, 2016 at 11:38 AM, Francis Daly <fran...@daoine.org> wrote: > > On Tue, May 31, 2016 at 10:26:26AM -0400, Larry Martell wrote: Hi there, > >> The C++ app sends the request directly to po

Re: Buitwith.com showing apache and nginx both.

2016-05-31 Thread Francis Daly
reviously, and show all historical answers. Perhaps builtwith.com uses heuristics which are wrong for your site. f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: checking headers

2016-05-31 Thread Francis Daly
On Tue, May 31, 2016 at 04:48:19PM -0400, Larry Martell wrote: > On Tue, May 31, 2016 at 4:19 PM, Francis Daly <fran...@daoine.org> wrote: > > On Tue, May 31, 2016 at 12:33:56PM -0400, Larry Martell wrote: Hi there, > > It sounds like your design is that your client

Re: checking headers

2016-05-31 Thread Francis Daly
heck. http://nginx.org/r/$http_ http://nginx.org/r/$sent_http_ http://nginx.org/r/$upstream_http_ are three different families of variables set within nginx. Possibly one of them covers what you want? f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: checking headers

2016-05-31 Thread Francis Daly
On Tue, May 31, 2016 at 10:26:26AM -0400, Larry Martell wrote: > On Tue, May 31, 2016 at 9:45 AM, Francis Daly <fran...@daoine.org> wrote: Hi there, > > Possibly one of them covers what you want? > > There are 2 ways requests get to port 8000, which is the port I wa

Re: 10054: An existing connection was forcibly closed by the remote host

2016-06-14 Thread Francis Daly
ailable. f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Drupal 7 and Coldfusion Proxy

2016-06-14 Thread Francis Daly
. That might lead to a smaller or less-frequently-updated nginx.conf. But if you have the option to reorganise at least one of the "upstream" url hierarchies, I'd suggest doing that instead. Good luck with it, f -- Francis Dalyfran...@daoine.org _

Re: SSL handshake failed with mutual TLS

2016-06-19 Thread Francis Daly
cause this message? How to debug it? I think that this message (can|does) mean that the far side did not like something about your certificate. If that is the case - are there any logs on the thing connecting to nginx about what it thinks happened in the TLS negotiation? Cheers,

Re: Send Strict-Transport-Security header in 401 response

2016-06-19 Thread Francis Daly
://nginx.org/r/add_header That suggests that you can use an "always" parameter. Is that appropriate in this case? If not, then possibly the third-party "headers more" module may be useful. f -- Francis Dalyfran...@daoine.org __

Re: Nginx limit_rate based on file extension

2016-06-24 Thread Francis Daly
ited into, that location counts. What is "root" set to here? What file on your filesystem do you want nginx to return? f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Double Redirect

2016-06-24 Thread Francis Daly
e what config you want, and make that happen. Perhaps the fix is to completely remove the first such block. Perhaps it is something else. Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.or

Re: PHP path_info problem

2016-01-28 Thread Francis Daly
(sub)request? The page at https://www.nginx.com/resources/wiki/start/topics/examples/phpfcgi/ comes up when I search for "php nginx path_info". It has an example configuration that may be worth examining. Good luck with it, f -- Fran

Re: Question about rewrite directive

2016-01-28 Thread Francis Daly
the end. Your nginx rewrite does not. Possibly you want "break" -- http://nginx.org/r/rewrite Your apache RewriteRule is protected by RewriteCond. Your nginx rewrite is not. Possibly something involving try_files or error_page and a named location for fallback could achieve the sam

Re: "Connection Refused" with nginx as reverse proxy

2016-02-01 Thread Francis Daly
> Can someone tell what is wrong in my configuration? Possibly nothing. f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Absolute rather than relative times in expires directives

2016-02-01 Thread Francis Daly
x-age=10800 If you get different output, it may be worth investigating properly what is happening. But it may be simpler to just deploy your tested-working version. Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mai

Re: "Connection Refused" with nginx as reverse proxy

2016-02-01 Thread Francis Daly
will involve "curl -x" with the nginx host:port. As far as any client is concerned, nginx is a web server. Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: question about client certs

2016-02-03 Thread Francis Daly
/clientcert/ is all handled by an external process, then possibly it could do its own validation or verification using values provided by nginx.) http://nginx.org/r/$ssl_client_verify for some details. Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: php not working from aliased subdir

2016-01-19 Thread Francis Daly
What value do you see for that? Is it exactly the filename that you want your fastcgi server to process? If not, what file do you want your fastcgi server to process? After that, you can decide whether you want to use a try_files directive in this location{} block, and if so, what exactly you

Re: Absolute rather than relative times in expires directives

2016-01-23 Thread Francis Daly
y option. Failing that: what is the small configuration that does not do what you want in 1.9.2? Copy-paste enough so that someone else can reproduce the problem that you are reporting. Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx

Re: limit_req off?

2016-01-23 Thread Francis Daly
t;zone=off", for example.) Then in your nested location, use limit_req zone=off; and that should stop the outer value from being inherited. Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mail

Re: PHP path_info problem

2016-01-26 Thread Francis Daly
pp/app.php" or something else instead? Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Pages rewrite

2016-01-26 Thread Francis Daly
te: in the above I have assumed that the source and destination hostnames are the same. If they really are not, and the number of x's is intentionally different, then you would need to include the full http:// url in the return directive.) Good luck with it,

Re: dynamic server name and aliases

2016-02-20 Thread Francis Daly
st of the system use that value for an "unknown" account. The alternative approach would be to have a separate server{} block for each account, with lots of duplication that is handled by your config-generator-from-template system. But f you want a single server{} block, the above is p

Re: Need help with Nginx Logging

2016-02-20 Thread Francis Daly
t; > excess: 10.200 in above log means that the requests are being limited as > > they are averaging at 10.2 requests / second . ...more than the configured limit. f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Key pinning / Nginx reverse proxy

2016-02-21 Thread Francis Daly
r directive that you want? If this is a public web server without any special authentications, then the curl response contains no secrets. f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Key pinning / Nginx reverse proxy

2016-02-21 Thread Francis Daly
* Public-Key-Pins header found, but with invalid formatting * valid Public-Key-Pins header found, but without the sha256 of the current certificate Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Reverse Proxy without backend private key

2016-03-18 Thread Francis Daly
cate and key in the name of your backend, and use that on nginx. (nginx is a reverse proxy. You reverse-proxy services you control.) f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mail

Re: Rev. proxying a java applet

2016-03-16 Thread Francis Daly
} could work. If the applet knows the upstream it came from, and tries to access that directly, then nginx is probably not involved. The best way to understand how to proxy this service (if it is even possible), is to know what it wants to do, at the network level. Good luck with it, f --

Re: upstream server does not match virtual host

2016-03-16 Thread Francis Daly
On Tue, Mar 15, 2016 at 08:20:25PM -0400, miky wrote: Hi there, > I use a nginx server in front of it as a reverse proxy and use a virtual > host. When I access http://portal, I want it to display the page as if it > was http://virt1 http://nginx.org/r/proxy_set_header f --

Re: multiple named captures in map regex

2016-03-29 Thread Francis Daly
> When I try the following in a map: > ~^/(?.)(?.) $a$b; You can use $a and $b outside the map; but where you have "$a$b", you must instead have exactly one string or one variable. f -- Francis Dalyfran...@daoine.org ___

Re: default server with custom 404

2016-04-07 Thread Francis Daly
On Thu, Apr 07, 2016 at 10:31:31AM +0100, Robin Becker wrote: > On 06/04/2016 23:14, Francis Daly wrote: Hi there, > >>Is there a way to customize my error page for this case? > > > >What you have done should work. Depending on the rest of your config, > >of cou

Re: Help for nginx proxy pass rule

2016-04-06 Thread Francis Daly
the proxy_pass directive, you could probably drop the "/static" part of the argument since it matches the request prefix. But until the proxy_pass is actually used, changing it will make no difference. f -- Francis Dalyfran...@daoine.org

Re: default server with custom 404

2016-04-06 Thread Francis Daly
to override nginx's 404 page so it > doesn't reveal the server. Patch the code and recompile. You probably don't want to do that. f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: upstream member liveness

2016-04-13 Thread Francis Daly
any* answer to your question? (Including this one.) And, by extension, why would you even ask a question? Read The Fine Source. It's the only way to be sure. Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx maili

Re: hide/strip set cookies on static files and howto use alias

2016-04-08 Thread Francis Daly
On Fri, Apr 08, 2016 at 05:06:19AM -0400, JoakimR wrote: Hi there, > Hi Francis Daly thank you very much for your reply You're welcome. > Let's brake this down one by one. I followed you suggestion and added > fastcgi_connect_timeout 600s; to the conf, however the pages still time ou

Re: hide/strip set cookies on static files and howto use alias

2016-04-10 Thread Francis Daly
is used for that subrequest; then possibly enabling the debug log on a test server will help you track it. Note - the debug log contains lots of information, most of which probably counts as "noise" for the one specific thing you are trying to find.

Re: Error 404 if url contains "star"

2016-04-10 Thread Francis Daly
o index.php. http://nginx.org/r/location Your rule does not redirect *all* requests. > Any ideas?! There's a missing backslash "\" on the "location ~*" line, just before the ".(". f -- Francis Dalyfran...@daoine.org

Re: Rev. proxying a java applet

2016-03-19 Thread Francis Daly
e browser (client) and > remote server. In that case, nginx is not involved, no? How does the browser know to talk to the remote server? > Thank you. Will you help me if I got more information? If you have enough information, it may be clear what is needed. So long as it remains ngi

Re: simple auth question for nested sections

2016-03-23 Thread Francis Daly
quot;, and there is no immediate benefit to nesting. f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: upstream server does not match virtual host

2016-03-19 Thread Francis Daly
ter. Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: secure and httponly cookies

2016-03-07 Thread Francis Daly
behaviour do you want that you are not seeing? f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: hide/strip set cookies on static files and howto use alias

2016-04-05 Thread Francis Daly
pg|jpeg|gif|css|png|js|ico|xml)$ { > location = /50x.html { > location ~ \.php$ { > location ~ /\.ht { For each test request that you make, which location block have you configured nginx to use to handle it? Is that the one that you want nginx to use to handle it? Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx with Varnish as a proxy. Phantom Port 80

2016-04-01 Thread Francis Daly
non-root). Your "letsencrypt" server{} block does not have any listen directive. So add one there -- and to any other similar blocks -- or do not start nginx as root (and therefore be unable to listen to any port below 1024). f -- Francis Dalyfran...@daoine.org ___

Re: nginx HttpSecureLinkModule php streaming

2016-03-28 Thread Francis Daly
specific thing you want to do? Do you have it working? If not, what do you have, what do you do, what response do you get, what response do you want? Repeat, for each other specific thing that you want to do. Good luck with it, f -- Francis Dalyfran...@daoine.or

Re: error_page behavior

2016-04-04 Thread Francis Daly
On Mon, Apr 04, 2016 at 08:54:12PM +0100, Francis Daly wrote: > On Mon, Apr 04, 2016 at 09:36:36PM +0200, B.R. wrote: Hi there, > > -> Error page HTTP 404 (???) > > I only get 404 if error_page.html does not exist. If it does exist, > I get it with http 200. > >

Re: Nginx servers on both *:80 and :80? also duplicate listen parameters error when binding by just specific ips

2016-03-31 Thread Francis Daly
ace" is replaced with "ip", this can work with two server{} blocks. > When I did the server{} per IP approach nginx complained about duplicate > listen settings for the second IP even though both server stanzas were > bound to a specific port/interface. Is this a bug p

Re: (52) Empty reply from server

2016-04-20 Thread Francis Daly
quot;curl" output you show seems to show your own http headers being successfully written. So it looks like what you have shown, is working. That's good. f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: (52) Empty reply from server

2016-04-28 Thread Francis Daly
e simplest possible method to print it somewhere you can read it. Usually, that means logging, since that should not have a complex data structure. > test_val->hash = ngx_crc32_long(test_val->lowcase_key, test_val->key.len); > } Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Trailing Slash redirection poblem

2016-04-30 Thread Francis Daly
on is usually a very good idea if "/live" is to be served from the filesystem and corresponds to a directory. So: why do you want to remove the trailing slash, in the shown configuration? If you want /live to redirect to /live/, then you should configure thing such that /live/ does not

Re: Nginx servers on both *:80 and :80? also duplicate listen parameters error when binding by just specific ips

2016-04-30 Thread Francis Daly
option too, perhaps you could make a policy of only setting them in that server{}? You'd still have the issue of multiple bind()s; but that is presumably "change your config design or change your OS". f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Permanent Redirect on nginx

2016-04-30 Thread Francis Daly
lse that is repeatable when there is no extra caching in the browser, for example, then the curl command that shows the request and response will be helpful. Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.o

Re: Permanent Redirect on nginx

2016-04-28 Thread Francis Daly
doing everything you want. The other should have "server_name old-name;" and "return 301 http://new-name$request_uri;; and not a lot more. f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org h

Re: (52) Empty reply from server

2016-04-22 Thread Francis Daly
copied it wrong, or the example code is wrong. f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Fully hiding localhost:8080 with Nginx as reverse proxy?

2016-05-18 Thread Francis Daly
sticket". Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Rewrite regex with percent signs

2016-05-22 Thread Francis Daly
from the one example you have given. > I can write a perl script and run that url through its regex and it does > change them. > > So what does the nginx regex do different from perl regex with regard to % > signs. With regard to % signs, nginx regex uses the %-unencoded version. Wi

Re: Errorlog shows GET timeout; Accesslog shows POST

2016-05-22 Thread Francis Daly
THOD:POST|ACCEPT:application/json; HTTPMETHOD there is $upstream_method, which is not (by default) what the client sent to nginx. I think that there's not enough information here to allow someone else discover the problem. If you can make a reproducible failure case, that will probably mak

Re: GET request with transfer-encoding causing issue

2016-05-24 Thread Francis Daly
oosing not to send it "chunked" even though it normally would. This problem seems to be nginx reading a request from a client, where the request is malformed. f -- Francis Dalyfran...@daoine.org ___ nginx mailing list ngin

Re: Proxy Pass | Upstream with query_string

2016-05-24 Thread Francis Daly
m? When you know that, it may be more obvious what proxy_pass configuration to use. Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: nginx on high load (upstream prematurely closed connection while reading response header from upstream)

2016-05-19 Thread Francis Daly
g something odd, then there is a conflict to investigate. Otherwise, it should says something about the connections that it is closing. If the site is opening fine, maybe there is no problem to worry about. f -- Francis Dalyfran...@daoine.org __

Re: timeout with UWSGI?

2016-05-10 Thread Francis Daly
currently does. Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Global denial for certain IPs or agents?

2016-05-10 Thread Francis Daly
k control device.) f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: (52) Empty reply from server

2016-05-10 Thread Francis Daly
ers_out data structure, as the examples show. Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Replace apache with nginx

2016-05-10 Thread Francis Daly
udio-file.html, what response should I get? Or alternatively: what request should I make, in order to be sent the content of the file /usr/local/nginx/html/audio-file.html? f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org

Re: NGINX: Set/use requests with fully qualified domain name (= FQDN).

2016-05-11 Thread Francis Daly
everse proxy for things you control, change your policy so that nginx can talk to your external web server without going through the proxy. I don't think that there is a "good" answer. f -- Francis Dalyfran...@daoine.org __

Re: limit_req_zone values

2016-05-17 Thread Francis Daly
simultaneous users at peak times. How many requests, or requests per second, corresponds to one user, on this site? f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Gzip issue with Safari

2016-05-17 Thread Francis Daly
e third question. Alternatively, if Apache or nginx change their response based on the User-Agent, you can try using "curl" to make the requests, using varying User-Agent headers. > Do you know any solutions? Not yet; I don't know what the problem is. Good luck with it, f --

Re: Serving website with Apache, with Nginx as interface?

2016-05-17 Thread Francis Daly
config like the one previously posted? Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Websocket Validation

2016-05-17 Thread Francis Daly
ablished, you do your own control. Possibly doing the backend validation check more frequently will help? Or whatever it is that decides that the cookie has expired, could let the backend know to close the connection now (or could invite the backend to do a validation check now)? f -- Fra

Re: DNS Caching Issue For community version

2016-05-16 Thread Francis Daly
.224.128.52862: 37996 1/0/0 A 93.184.216.34 (49) === Now, I don't control the google name server, and I can't make www.example.net get an updated address at will; but the above does seem to show that the nginx resolver is making a fresh dns request when it is supposed to. Do you see something el

Re: Gzip issue with Safari

2016-05-18 Thread Francis Daly
nse you get, or what response you want. So I'll let someone else get involved. Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: nginx on high load (upstream prematurely closed connection while reading response header from upstream)

2016-05-18 Thread Francis Daly
"POST / HTTP/1.1", upstream: > "fastcgi://127.0.0.1:9000", host: "10.50.x.x", referrer: "http://10.50.x.x; And that message is that the fasctcgi server broke the connection. It is probably worth investigating what the fastcgi server thinks is happe

Re: timeout with UWSGI?

2016-05-11 Thread Francis Daly
t; or, most likely here, "uwsgi_pass". "the next server" is the upstream, in this context. And the directive is whichever *_pass you use here. Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: change client_body_buffer_size from 16K to 256K made the nginx logs size from 50M to 1G..

2016-05-11 Thread Francis Daly
d=swfupload. If you don't want the request body logged, don't log the request body. If you don't want the request body logged for one $request_uri only, you can finish handling that in a specific location{} and use a different access_log there. f -- Francis Dalyfran...@daoine.org

Re: Trailing Slash redirection poblem

2016-05-03 Thread Francis Daly
need the trailing slash -- or you will need to change the content to be of the form "catagory/post1.html". That should all be configurable within wordpress, if anywhere. Good luck with it, f -- Francis Dalyfran...@daoine.org __

Re: Rewrite before regex location

2016-05-05 Thread Francis Daly
ing $fastcgi_script_name without the > /php-fpm prefix. That's because your fastcgi_split_path_info pattern does not match - .php is not followed by / in your rewritten url. Because of the location{} you are in, it is probably simplest to just replace the second capture part of that pat

Re: Rewrite before regex location

2016-05-04 Thread Francis Daly
ndition correctly handles all the > non-existing files. There is more than one possible try_files configuration; but that does not matter: if you have a system that works for you, you can keep using it. Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: php5-fpm gives unknown script error

2016-05-10 Thread Francis Daly
es, but anything that compresses down to some tens of kB is usually quite quick and easy. Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: openshift-nginx docker image running as non-root

2016-05-04 Thread Francis Daly
on the container and was albe to "cat" the "default.conf" > and the "nginx.conf" files. Do you do that as the same user/group that you run nginx as? Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Rewrite before regex location

2016-05-04 Thread Francis Daly
root$fastcgi_script_name) { > set $fastcgi_script_name_custom "/cms/index.php"; > } I suspect that it should be possible to do what you want to do there, with a "try_files". But I do not know the details. Good luck with it, f -- Francis Daly

Re: Trailing Slash redirection poblem

2016-05-02 Thread Francis Daly
y this is a requirement from my client. Sometimes, the correct response to a client requirement is "no". It is not yet clear to me whether this is one of those times. f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Redirection problem again in new rules.

2016-04-15 Thread Francis Daly
ed in the redirections. > could this be related to wordpress? It could be. If the "curl" responses show that PHP is involved, then it probably is. f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: (52) Empty reply from server

2016-04-14 Thread Francis Daly
your full requirements are much more detailed. It is worth making sure that you are very clear on what you are trying to do; otherwise you won't be able to know when you've done it. Good luck with it, f -- Francis Dalyfran...@d

Re: (52) Empty reply from server

2016-04-19 Thread Francis Daly
val = ngx_string("http_cookie"); And one final thing - I suspect that the request header "Cookie" will be presented in the header_in structure under the name "cookie", not the name "http_cookie". Possibly just making that change will cause your code to

Re: Making Tomcat accessible only through nginx reverse proxy

2016-04-20 Thread Francis Daly
nfigured correctly, changing name resolution (dns) so that the FQDN corresponds to the nginx IP address instead of the tomcat IP address will be a necessary step. Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing l

Re: unknown directive "proxy_ssl"

2016-04-14 Thread Francis Daly
n directive "proxy_ssl" in /home/devel/nginx.conf:14 > > I’m under the impression that this module is included in the core, but I > might be wrong. How should go about compiling with the corresponding module > included? ./configure --help | grep stream Then add the bits that you

Re: nginx returns 503 when it gets 403 from haproxy

2016-04-15 Thread Francis Daly
proxy_pass http://haproxy; } } } === seems to suggest that nginx does what you want. So - have you a different config; or is your haproxy not issuing a "clean" 403, or is something else happening on the wire? f -- Francis Dalyfran...@daoine.org __

Re: (52) Empty reply from server

2016-04-14 Thread Francis Daly
quot; data structure. So the "type" variable is probably NULL, and your code should do something sensible with that value. Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Port redirect in URL

2016-04-21 Thread Francis Daly
second argument, allowing for scheme://host to be added later.) If you can do without the "proxy_set_header Host" line, then you can possibly do without proxy_redirect altogether (as in: use "proxy_redirect default;" implicitly). f -- Francis Dalyfran...@d

Re: (52) Empty reply from server

2016-04-18 Thread Francis Daly
on fail? If you can describe that, perhaps someone here will be able to offer some more direct help. Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Redirection problem again in new rules.

2016-04-18 Thread Francis Daly
On Mon, Apr 18, 2016 at 06:37:59PM +0500, Muhammad Yousuf Khan wrote: Hi there, > Thanks alot Francis Daly :). the try_file option worked for me and location > tip also worked but try_file seems more better approach. I'm glad you got it working for you. > Btw, can you pleas

Re: Redirection problem again in new rules.

2016-04-14 Thread Francis Daly
g to see, or otherwise work out, what you have asked nginx to do". Then compare that with what you want nginx to do. Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

<    1   2   3   4   5   6   7   8   9   10   >