Re: Static or dynamic content

2016-10-20 Thread Francis Daly
On Thu, Oct 20, 2016 at 09:19:29AM +, Jens Dueholm Christensen wrote: > On Tuesday, October 18, 2016 08:28 AM Francis Daly wrote, Hi there, > > what output do you get when you use the test config in the earlier mail? > > Alas I did not try that config yet, but I would assum

Re: Problem with cache key

2016-10-24 Thread Francis Daly
o upstream. That would be at the cost of (e.g.) not being able to serve sdch- or br-encoded content to the Chrome that asked for it. Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx proxy_pass not working as expected.

2016-10-28 Thread Francis Daly
github.io it would work better? (At least, until that remote web site chooses to redirect you somewhere else as well.) f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: round robin rule

2016-10-28 Thread Francis Daly
was used. Then send a request to vhost1, to vhost2, to vhost1, and to vhost1 again. Did the first two to vhost1 go to the same upstream? And did the last to vhost1 go to the other upstream? I'll be interested in seeing your conclusions. Good luck with it,

Re: Alias or root directive

2016-11-03 Thread Francis Daly
o that request? > location ~ ^/en/holidays/shared/images { > root /mnt/nfs/uat/; > } > > When i replace root with alias it has also no effect :-( "alias" in a regex location has special requirements. http://nginx.org/r/alias Cheers,

Re: Alias or root directive

2016-11-03 Thread Francis Daly
ould see an indication of what file nginx tried to serve, if it failed. f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Alias or root directive

2016-11-03 Thread Francis Daly
gnored completely in the config. I'd suggest to check the logs then, to see what is happening instead. And ensure that you are getting nginx to use the new config, each time you change it. The logs should show that that has happened too. Good luck with it, f -- Fr

Re: Question about Error logs

2016-11-03 Thread Francis Daly
file gets large in > size quickly. I'd probably either try to fix the problem that leads to the errors; or post-process the file to eliminate the duplicates and only store the processed version. But neither of those is a direct answer to your question. Cheers, f -- Francis Dal

Re: location regex

2016-11-03 Thread Francis Daly
ple, "/foo/app" and "/appbaz" will both match this location. (Effectively, the above is "does the request include the four-character string /app anywhere?", which is not what the comment suggests that you wanted.) f -- Francis Dalyfran...@daoine.

Re: Blocking tens of thousands of IP's

2016-11-03 Thread Francis Daly
that if you do not measure a difference, there is not an important difference to you. And yes, use "geo" rather than "map" or any other list. (Or: build one of each in your lab and measure.) Cheers, f -- Francis Dalyfran...@daoine.org __

Re: Help how to Proxy without redirect

2016-11-03 Thread Francis Daly
suspect that you do not want "proxy_redirect off", though. http://nginx.org/r/proxy_redirect If you can show the request-and-response that works for you, then it might become clear why the request-and-response that fails for you, fails. Cheers, f -- Francis Dalyfran...@daoine.org

Re: How to forward the request to a remote proxy

2016-11-06 Thread Francis Daly
g else as well as nginx, or something else instead of nginx. Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Set location based on query arg

2016-11-10 Thread Francis Daly
uest: www.example.com/demo?path=xyz > Docroot: /var/www/example/xyz/ And what would you like nginx to do with *that* request, that is different from the previous one? Perhaps the thing that you want achieved, can be achieved somehow. f -- Fran

Re: Set location based on query arg

2016-11-11 Thread Francis Daly
t;. Something like map $arg_path $root_bit { default $arg_path; "" default; } and then later root /var/www/example/$root_bit; Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Set location based on query arg

2016-11-11 Thread Francis Daly
On Fri, Nov 11, 2016 at 08:30:06AM +, Francis Daly wrote: > On Thu, Nov 10, 2016 at 06:46:10PM -0500, ulik wrote: Hi there, > > # root when path query arg is present > > if ($arg_path) { > > root /var/www/example/$arg_path; > > } > You c

Re: nginx upstream source ip address

2016-11-13 Thread Francis Daly
, then proxy_bind (http://nginx.org/r/proxy_bind) can do what you want. Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Wildcard in location directive

2016-11-15 Thread Francis Daly
uot; matches from the / after the domain name, to just before the first # or ? For this request, that is from /documents to /params So of these, the second is the location that nginx should use. f -- Francis Dalyfran...@daoine.org __

Re: Wildcard in location directive

2016-11-15 Thread Francis Daly
epth/ifisevil/ Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: nginx-1.11.6

2016-11-16 Thread Francis Daly
x API that it uses had not changed in that time? I suspect that when someone that does want it takes a look, they will create a version for nginx-1.11.6 which avoids touching ->default_port and it will probably work again. Cheers, f -- Francis D

Re: set cache-control in a subfolder (php)

2016-11-17 Thread Francis Daly
l is to have no-cache on all php files in this subfolder. Any one who > could help me? Populate "location ~ ^/admin/*.php$ {}", perhaps? f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Help with securing "route" cookie

2016-11-21 Thread Francis Daly
ing the browser or just by deleting the cookie). If the browser presents a cookie, the server will not send a new one. And it is only the new one that will be marked "Secure" or not. Good luck with it, f -- Francis Dalyfran...@daoine.org __

Re: Feature request ?

2016-11-21 Thread Francis Daly
has asked for it. Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Help with securing "route" cookie

2016-11-21 Thread Francis Daly
iguration is something different, then it may be worth checking module and server versions for compatibility, or confirming that the config you think is running is the config that is running. Who knows; maybe there is a problem that can be fixed in the module. f -- Franci

Re: Reverse proxy should send server_name

2016-11-22 Thread Francis Daly
t;proxy_redirect" too); or create an "upstream" called service1.mydomain.org and "proxy_pass" to that. Note that if your "location" ends in /, you probably want your "proxy_pass" to end in / too. Cheers, f -- Francis Dalyfran...@dao

Re: Nginx headers to be set at the time of request processing

2016-11-23 Thread Francis Daly
y_pass configuration. > Is there some way I can set the headers at the time of request processing > itself not just before proxying to upstream servers? I do not know what you mean by that question. What headers are you referring to, specifically? Thanks, f -- Francis Dalyfran..

Re: Nginx headers to be set at the time of request processing

2016-11-29 Thread Francis Daly
t; directive were active. No "*_pass" directive is active, so those three directives are effectively unused for this request. What do you expect your module to report for a request handled in this location? That may make it clearer what you are trying to achieve. (If it does not, f

Re: location and file extension regex

2016-12-03 Thread Francis Daly
0.0.1:/abc/def.xml Did not match: /abc/def.xml $ curl http://127.0.0.1:8888/abc.txt Did not match: /abc.txt f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: location and file extension regex

2016-12-03 Thread Francis Daly
you have other configuration that you are not showing. f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Fastcgi_pass, resolver, and validating functionality.

2016-12-06 Thread Francis Daly
y using -- or checking the debug log for the "name was resolved to" or "connect to" lines. Or check the error log for the "connect" line if the connect failed. All of those are indirect. tcpdump is probably easiest; but you could use a "debug_connection 127.0.0.10

Re: POST method with x-accel-redirect

2016-12-06 Thread Francis Daly
on is that if your tomcat instead returns HTTP 200 with a header X-Accel-Redirect of @fileserver, then in your (new) "location @fileserver", a proxy_pass would be a POST to http://file_server/api/v1/files/two. Does that help in the design of your solutio

Re: Bypass specific host in rate_limit !!

2016-12-07 Thread Francis Daly
mit_rate" directive, then the documentation at http://nginx.org/r/limit_rate suggests that yes, you can. f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: How do I rewrite files, but only, if they are in one special folder?

2016-12-12 Thread Francis Daly
anent; Untested, but it looks right :-) You may want to restrict these to the locations that match their prefixes, depending on what else is happening. f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Host public folder in nginx

2016-12-13 Thread Francis Daly
hings to start working for you. If you want a separate location{} for your /content urls, you should still keep "root html" active in it -- http://nginx.org/r/root for the documentation. f -- Francis Dalyfran...@daoine.org

Re: rewrite cycle

2016-12-15 Thread Francis Daly
ation above the "regex everything" one, so that most things that start with /bin/ will use this instead of the other. Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: How do I rewrite files, but only, if they are in one special folder?

2016-12-29 Thread Francis Daly
hould add one? Depending on what else is in your config, it may be useful to put the second rewrite within a "location ^~ /wiki/ {}" block. But if you don't measure a difference when putting it there, in a "location ~ \.php5 {}" block, or at server{] level, then it does not m

Re: setting up a forward proxy for a few specific website only, and block the rest

2016-12-29 Thread Francis Daly
te that I want to proxy ? Probably not; you don't, because nginx is not a proxy server. f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: rewrite cycle

2016-12-29 Thread Francis Daly
On Thu, Dec 15, 2016 at 01:18:55PM +, Francis Daly wrote: > On Thu, Dec 15, 2016 at 02:30:17PM +0300, Руслан Закиров wrote: Hi there, You got the right answer from Maxim. I had missed that > > location ~ ^/([A-Z_].*)$ { > > rewrite ^/(.*

Re: limit_req per subnet?

2016-12-29 Thread Francis Daly
bly does not exist. The tools that are needed to create it, probably do exist. All that seems to be missing is the incentive for someone to actually do the work to build a thing that you would like to exist. f -- Francis Dalyfran...@daoine.org

Re: Nginx authentication based on parameterized url

2016-12-29 Thread Francis Daly
sr/local/nginx/conf/conf/htpasswd" failed (2: No such file or directory)" in my error log, until I changed the auth_basic_user_file directive. But perhaps you have the matching directory structure already.) f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: limit_req per subnet?

2016-12-31 Thread Francis Daly
quot; matches "any byte" in your regex engine; or whether you can make it match "any byte" (specifically including the byte that normally represents newline); before you trust that fully, of course.) If you don't like map with regex, you can use "geo"

Re: limit_req per subnet?

2017-01-04 Thread Francis Daly
old a binary > > representation of the first two octets of the connecting ip address. > That sounds like a good solution. Will using map along with a regex > slow the server down much? The usual rule is that if you do not measure the slow-down on your test system, then there is not a significan

Re: proxy_bind

2017-01-17 Thread Francis Daly
the content at http://nginx.org/en/docs/stream/ngx_stream_proxy_module.html#proxy_bind with the output of your "nginx -v" f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: proxy_bind

2017-01-17 Thread Francis Daly
10.2 Your version does not support using "transparent", or using "$remote_addr", but it does support proxy_bind. If you want to use the config you showed, you will need an updated nginx version. Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Can Nginx route SMTP based on login credentials?

2017-01-25 Thread Francis Daly
to is chosen; it just connects to what it is told to by the response of the auth_http request that it makes. Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Rate limiting by percentage

2017-01-25 Thread Francis Daly
m http://nginx.org/r/upstream (Although really, I probably wouldn't do it purely in nginx.conf.) f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx reverse proxy issue -- Plz help

2017-01-29 Thread Francis Daly
nginx might be asking upstream for something like /EasyPAY/view/LoginMain.aspxEasyPAY/view/System.js?11, which probably causes it to send 404 to nginx. Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Mail Proxy with xclient - connection lost

2017-01-29 Thread Francis Daly
ation is supposed to look like.) 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

2017-01-31 Thread Francis Daly
On Tue, Jan 31, 2017 at 08:43:23AM +0200, Nikolaos Milas wrote: > On 19/1/2016 10:58 μμ, Francis Daly wrote: Hi there, > I have tried various things with the aliased directories, but I am > still having the problem. > My logic is to use a scheme like (see full details in the att

Re: php not working from aliased subdir

2017-02-02 Thread Francis Daly
On Wed, Feb 01, 2017 at 06:53:23PM +0200, Nikolaos Milas wrote: > On 31/1/2017 10:13 μμ, Francis Daly wrote: Hi there, Good that you got it working for you. > By the way, is there some method to define a block of code which can > be included at various places? In stock nginx.conf? No

Re: Where does $remote_addr come from?

2017-02-03 Thread Francis Daly
ng else. Exactly, it is what the source code says: v->data = r->connection->addr_text.data; and then you can track where that addr_text.data value is set. Cheers, f -- Francis Dalyfran...@daoine.org ___ n

Re: SO_BUSY_POLL for latency critical cases

2017-02-03 Thread Francis Daly
e benefits, according to this specific analysis. Maybe it can be explained why the analysis is wrong; maybe some other analysis can be suggested that will show that there are benefits. But the justification for the change will probably have to com

Re: Where does $remote_addr come from?

2017-02-03 Thread Francis Daly
e, any module *could* change what that appears to be. So don't run modules you don't trust, if you want to be able to believe what your nginx reports its internal state to be.) Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: limit connection based on Host header

2017-02-04 Thread Francis Daly
rver_name, so what you see is what you asked for. Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: View the client's HTTP protocol?

2017-02-10 Thread Francis Daly
erver_protocol or if you want the whole request: http://nginx.org/r/$request f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Apache to nginx

2017-02-13 Thread Francis Daly
what do you want nginx to do when you request the url /vakanz/ -- it may make it clearer what the config you want to have in nginx.conf is. Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: How to cache static files under root /var/www/html/images

2017-02-14 Thread Francis Daly
nx. Make sure that you use an operating system which has decent file caching, and make sure that you have enough memory that the operating system can cache these files. f -- Francis Dalyfran...@daoine.org ___ nginx mailing list n

Re: How to cache static files under root /var/www/html/images

2017-02-14 Thread Francis Daly
to do busy-work to keep these files "hot", do just that. while :; do find /var/www/html/images -type f -exec cat \{} > /dev/null + sleep 10 done I don't recommend it; but it's not my server. Good luck with it, f --

Re: Question about proxy_cache_key

2017-02-16 Thread Francis Daly
actual cache key that is used internally in nginx, so that the purge facility can work with it. (Or possibly the ngx_cache_purge module could be updated to work transparently with the current nginx cache key behaviour -- I do not know whether that is possible.) Good luck with it, f -- Franc

Re: Proxying and static files

2017-02-16 Thread Francis Daly
or location ~* ^/app1/(images|css|js|files)/(.*) { alias /home/username/app1/public/$1/$2; } or location ~* ^/app1/(.*.(js|css))$ { alias /home/username/app1/public/$1; } In each case, the "location"s (particularly the regex one) could be nested within the match

Re: SSL Passthrough

2017-02-17 Thread Francis Daly
You'll want to rethink your design, in order to find something that can do what you want. Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: input required on proxy_next_upstream

2017-02-18 Thread Francis Daly
ation.) Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: try_files does not have any effect on existing files

2017-02-19 Thread Francis Daly
contents of the file /usr/local/nginx/html/localhost/abc; but I get the contents of the file /usr/local/nginx/html/abc instead". But it will be good to be clear on what you expect to happen. Thanks, f -- Francis Dalyfran...@daoine.org ___

Re: Cache only static files in sub/subfolder but not sub

2017-02-20 Thread Francis Daly
looks to me like you want "match the prefix location, and then do not check the regex locations". There's a squiggle for that. http://nginx.org/r/location f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx

Re: input required on proxy_next_upstream

2017-02-21 Thread Francis Daly
to share, I suspect that it could be a welcome addition to the stock code. Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Image Maps

2017-02-22 Thread Francis Daly
t be to have nginx "do" cgi itself. Perhaps it should proxy_pass to a http server; perhaps it should fastcgi_pass to a fastcgi server that knows how to handle the request. Good luck with it, f -- Francis Dalyfran...@daoine.org ___

Re: how can I use external URI with the auth_request module

2017-02-22 Thread Francis Daly
cal uri. > It looks a little bit strange to look for the auth_request's URI through > static files (/usr/local/html). It does whatever you configured nginx to do with that uri. (Apart from the "@named" piece, which I'm not sure about.) Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: nginx as reverse proxy to several backends

2017-02-22 Thread Francis Daly
clarity, could you show the responses you get for a "curl -v" request to the first http:// address, and then to the (presumably) returned 301 Location? That may make it more obvious what is happening, compared to what should be happening; and may make the solution clear to somebody. Cheers,

Re: Nginx Map how to check value if empty

2017-03-04 Thread Francis Daly
binary_remote_addr > > Not sure how to check in a map if that http header is present. If the http header is absent, the matching variable is empty. So it will have the value "". Use that as the first half of your "map" pair.

Re: Websocket, set Sec-Websocket-Protocol

2017-03-04 Thread Francis Daly
ending on your requirements, that may be interesting to you.) f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: One NGINX server to 2 backend servers

2017-03-04 Thread Francis Daly
nother on port 81, then you will possibly have to make sure that the internal web areas are happy with being proxy_pass'ed like that -- they may need extra configuration to know the public url that refers to them if they create absolute urls within the html they return, for ex

Re: How to cache image urls with query strings?

2017-03-04 Thread Francis Daly
n an earlier reply. If it does not, then more investigation is needed. Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx Map how to check value if empty

2017-03-07 Thread Francis Daly
. > I have solved my issue with the following. This will work, with the above caveats. If you have time to experiment, you may find that the realip module does something similar in a less fragile way. Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Passing $upstream_response_time in a header

2017-03-07 Thread Francis Daly
llisecond resolution instead of > a value of seconds with millisecond resolution. My reading of http://nginx.org/r/$upstream_response_time says that what you report should not be happening. Do you have a sample config / request / response which shows the problem? Cheers, f --

Re: Nginx Map how to check value if empty

2017-03-08 Thread Francis Daly
27;t; so if you need that, then you must build your own work-alike (like you've done); or write or encourage some to write the code to improve the realip module for this use case. f -- Francis Dalyfran...@daoine.org ___ nginx mailing

Re: Nginx Map how to check value if empty

2017-03-08 Thread Francis Daly
e fills? Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: configuration nginx server block [virtual host] with Ipv6.

2017-03-09 Thread Francis Daly
One difference there is that your fastcgi_pass in IPv4 connects to an address:port, while in IPv6 it does not. I would guess that using [::1]:9056 might have a chance of helping. But only if you can already fetch a file from nginx on IPv6 when fastcgi is not involved. Good luck with it,

Re: map directive doubt

2017-03-09 Thread Francis Daly
== server { listen 8880; return 200 "user agent = $http_user_agent; map = $upstreamname\n"; } == $ curl -H User-Agent:xxAndroidxx http://localhost:8880/x f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@ngi

Re: configuration nginx server block [virtual host] with Ipv6.

2017-03-10 Thread Francis Daly
On Thu, Mar 09, 2017 at 06:06:05PM -0500, Vanhels wrote: Hi there, > The error happens when Listen and fastcgi_pass have the same port address in > both domains, What's the error? What do you do / what do you see / what do you want to see instead? f -- Francis Daly

Re: configuration nginx server block [virtual host] with Ipv6.

2017-03-10 Thread Francis Daly
Nothing in the log" usually means that the request is not getting to nginx at all. f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: proxy_bind with hostname from /etc/hosts possible?

2017-03-17 Thread Francis Daly
n external file which you "include" in your common nginx.conf, and let *that* file be generated unique per host. And another option could be to have a common nginx-conf-precursor which is distributed to all hosts, and then run a pre-processor of your choice against it to create the individua

Re: Using nginx as proxy

2017-03-17 Thread Francis Daly
at once. Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: curl 301 moved permanently if I don't use slash at the end of the url

2017-04-01 Thread Francis Daly
does correspond to a directory, then invoke your extra code -- which might be handled by a fastcgi script you write, or by something you write in one of the embedded languages in nginx. It is possible that someone has already wanted the same thing as you, and written a module to do it. I'

Re: HTTP To TCP Conversion

2017-04-01 Thread Francis Daly
n pick up... Is there some part of the previously-mentioned nchan module design or source that is unclear or inappropriate here? I suspect that you may have a better chance of getting a specific answer, if you ask a specific question. Good luck with it, f -- Francis Daly

Re: how to proxy a proxy (subrequest with corporate proxy)

2017-04-01 Thread Francis Daly
.origin-server.com"; > proxy_pass http://corporate_proxy; > } does everything that you want normally, then something like > location /subrequest { > proxy_buffering off; > proxy_pass_header on; > proxy_set_header Host "rest_server"; > proxy_pass htt

Re: Nginx cookie map regex remove + character

2017-04-01 Thread Francis Daly
,}" and "+", since they mean the same thing and having both is redundant. f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: fastcgi_pass and http upstream

2017-04-03 Thread Francis Daly
ain requests among the http servers; and you can share certain other requests among the fastcgi servers; but I believe you can't have a single incoming request balanced across different protocols in stock nginx. f -- Francis Dalyf

Re: Nginx cookie map regex remove + character

2017-04-03 Thread Francis Daly
On Mon, Apr 03, 2017 at 10:12:04AM +0200, B.R. via nginx wrote: > On Sat, Apr 1, 2017 at 1:57 PM, Francis Daly wrote: > > > If you want to match "word character or plus", use something like [\w+]. > > > > ​Defining a pattern over a simple assertion is kinda

Re: No referrer header on leacher's site !!

2017-04-04 Thread Francis Daly
need to tell nginx which requests to deny and which requests to allow. But before you can do that, you will have to know how to identify the requests in one of the sets. f -- Francis Dalyfran...@daoine.org ___ nginx mailing list n

Re: Nginx redirect preserving source hostname

2017-04-04 Thread Francis Daly
wser shows. If you want the browser not to make a new request, you need to handle the request internally, within nginx, possibly by means of a proxy_pass (if the desired resource is only available in another server{}). Good luck with it, f

Re: custom ip address on port 80 not listening

2017-04-08 Thread Francis Daly
explicit "listen" has an implicit "listen *:80" when you run as root. Does nginx -T | grep -n 'server\|listen' show any obvious candidates? f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: URL-Rewriting not working

2017-04-09 Thread Francis Daly
Can you show some requests that you want the client to make of nginx, and then show the matching requests that you want nginx to make of the back-end? You can use "curl" on the nginx machine to make similar requests of the back-end yourself, to see that actual response details. That might give

Re: URL-Rewriting not working

2017-04-09 Thread Francis Daly
stening-ports to the public, > then I guess we are done. Until you exhaust resources on your system, nginx does not care how many listening ports it opens. Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: URL-Rewriting not working

2017-04-09 Thread Francis Daly
set a default value for $per_user_port, and make sure that something sensible happens when that value is used -- probably a response along the lines of "something isn't fully set up on the server yet; please wait or let us know", so the user is not

Re: Nginx - API Gateway is not forwarding the request to Auth Service

2017-04-11 Thread Francis Daly
auth_request user guide did you use for inspiration? It may be that that document can be improved for the next person. Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx - API Gateway is not forwarding the request to Auth Service

2017-04-12 Thread Francis Daly
it does not suit you to do it. It's good that you have solved the problem you had. Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Unable to resolve the "Access-Control-Allow-Origin" issue

2017-04-12 Thread Francis Daly
at should be happening, then the path to configuring things to allow to all to happen will become clearer. Good luck with it, f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx - API Gateway is not forwarding the request to Auth Service

2017-04-13 Thread Francis Daly
e auth_request lines. If the effective behaviour changes, then the lines were doing something that matters. f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: weight and balancing in upstream proxy

2017-04-13 Thread Francis Daly
difficult to test, if you don't want to read the available source. Good luck with it! f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: auth_basic and satisfy allowing all traffic

2017-04-13 Thread Francis Daly
200 with the content of /usr/local/nginx/html/x, while "curl -i http://127.0.0.3:8080/x"; returns 401 with WWW-Authenticate: Basic realm="Site Restricted" What do you see when you do that exact test? How does it differ from the problem case you reported? Cheers,

Re: Unable to resolve the "Access-Control-Allow-Origin" issue

2017-04-13 Thread Francis Daly
e? Will your final use case involve a local file, a resource from the 1.2.3.4 server, or something else? f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

<    3   4   5   6   7   8   9   10   11   12   >