Re: Question regarding $invalid_referer

2024-03-07 Thread J Carter
oogle.com/"; "Mozilla/5.0 (Linux; Android 10; K) > AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36" > "-" > ** > So I would need to map /images/ttr/0701crash.pdf to the referring page >

Question regarding $invalid_referer

2024-03-05 Thread li...@lazygranch.com
I am presently using a scheme like this to prevent scraping documents. location /images/ { valid_referers none blocked www.example.com example.com forums.othersite.com ; # you can tell the browser that it can only download content from the domain

Re: This is a question about the "$status" log value when "proxy_read_timeout" occurs.

2024-01-16 Thread 박규철
Hello. I came to understand why 200 is stored in the $status variable when proxy_read_timeout occurs. Thank you for the reply. 2024년 1월 17일 (수) 오전 7:27, Maxim Dounin 님이 작성: > Hello! > > On Tue, Jan 16, 2024 at 01:15:09PM +0900, 박규철 wrote: > > > This is a question about the &

Re: This is a question about the "$status" log value when "proxy_read_timeout" occurs.

2024-01-16 Thread Maxim Dounin
Hello! On Tue, Jan 16, 2024 at 01:15:09PM +0900, 박규철 wrote: > This is a question about the "$status" log value when "proxy_read_timeout" > occurs. > Nginx version in use: v1.25.3 > > Contents of 1Mbyte size were requested to [Origin Server]. > A response

This is a question about the "$status" log value when "proxy_read_timeout" occurs.

2024-01-15 Thread 박규철
Hello. This is a question about the "$status" log value when "proxy_read_timeout" occurs. Nginx version in use: v1.25.3 Contents of 1Mbyte size were requested to [Origin Server]. A response up to approximately 500Kbytes in size, including the header, was received without d

Re: Question

2024-01-04 Thread Vucomir Ianculov via nginx
you can try to use ngx_http_dav_module On Thu, Jan 4, 2024 at 11:45 AM Saint Michael wrote: > How do I configure a /location { > > } > so anybody can upload a file that goes to a directory on the server? > I would use curl, for an API >

Question

2024-01-04 Thread Saint Michael
How do I configure a /location { } so anybody can upload a file that goes to a directory on the server? I would use curl, for an API ___ nginx mailing list nginx@nginx.org https://mailman.nginx.org/mailman/listinfo/nginx

Question regarding stale sockets and EWOULDBLOCK

2023-11-07 Thread Felipe Polanco
Hello, We have a situation with NGINX forward proxy and I would like the community's input on how to handle this. We run long-lived TCP sockets in our business, and we authorize transaction requests on behalf of our customers. We use NGINX as the TLS termination proxy. We are experiencing issue

RE: Geoip2 module question

2023-07-20 Thread Reinis Rozitis
> I am wondering why it's not more available in the Linux repositories. Any > thoughts? It's a third party module. Why it is not available in your particular linux distribution you'll have to ask the distribution maintainers (Oracle) as for example it's available in Opensuse https://software.o

Geoip2 module question

2023-07-19 Thread Software Info
Hi All, I am running oracle Linux with free nginx and I have been trying to get the nginx-geoip2-module.so module. It's not in any repo that I have seen and I have had problems compiling it. I used to use this on FreeBSD. I am wondering why it's not more available in the Linux repositories. Any th

Re: Question about proxy

2023-01-30 Thread Francis Daly
On Mon, Jan 30, 2023 at 10:39:52PM -0500, Saint Michael wrote: Hi there, > Can you please elaborate on this: > "You probably want subs_filter_types to include text/html, and you probably > want "r" on the subs_filter patterns that are regular expressions rather > than fixed strings" > one example

Re: Question about proxy

2023-01-30 Thread Saint Michael
Can you please elaborate on this: "You probably want subs_filter_types to include text/html, and you probably want "r" on the subs_filter patterns that are regular expressions rather than fixed strings" one example will suffice. On Mon, Jan 30, 2023 at 8:20 PM Francis Daly wrote: > > On Sun, Jan

Re: Question about proxy

2023-01-30 Thread Francis Daly
On Sun, Jan 29, 2023 at 03:17:15PM -0500, Saint Michael wrote: Hi there, > What causes each case, i.e., what do I need to do so always the > https://domain.com is NOT the original domain being proxied, but my > own domain (https://disney.ibm.com). You seem to be using the module at https://githu

Question about proxy

2023-01-29 Thread Saint Michael
In my website, I proxied https://perplexity.ai trough a domain of mine but when I get redirected, I see on top, on the domain line, not my own line. In other cases, I see my own domain line. What causes each case, i.e., what do I need to do so always the https://domain.com is NOT the original domai

Re: Question on Instance structure.

2022-10-29 Thread Aleksandar Lazic
like setting the prefix, etc. is where most of my question lies. Please know that I'm coming from a Tomcat background at this. I did recently find you can also override the prefix on the command line, but apparently NOT in the config file.?. What do you mean with "prefix"? Please

RE: Question on Instance structure.

2022-10-28 Thread jonmcalexander--- via nginx
I would be interested in either setup. My thoughts are around having 1 set of binaries with sites/instances in different folder structures that USE the central binary. I'm aware of the -c at the command line level, but items like setting the prefix, etc. is where most of my question

Re: Question on Instance structure.

2022-10-28 Thread Thomas Ward
y, October 27, 2022 5:02 PM To: Mcalexander, Jon J. Cc: nginx@nginx.org Subject: Re: Question on Instance structure. Hi. On 27.10.22 19:05, jonmcalexander--- via nginx wrote: I have a question regarding structure. What is the proper configuration of NGINX instances when you want to have multiple confi

Re: Question on Instance structure.

2022-10-28 Thread Aleksandar Lazic
Hi. On 28.10.22 00:20, jonmcalexan...@wellsfargo.com wrote: Thank you! Can anything be setup in the nginx.conf file? I don't get your question as the nginx.conf is the main configuration file. Are you already familiar with nginx and the concept behind it? Maybe you can start with this

RE: Question on Instance structure.

2022-10-27 Thread jonmcalexander--- via nginx
7, 2022 5:02 PM > To: Mcalexander, Jon J. > Cc: nginx@nginx.org > Subject: Re: Question on Instance structure. > > Hi. > > On 27.10.22 19:05, jonmcalexander--- via nginx wrote: > > I have a question regarding structure. > > > > What is the proper configurat

Re: Question on Instance structure.

2022-10-27 Thread Aleksandar Lazic
Hi. On 27.10.22 19:05, jonmcalexander--- via nginx wrote: I have a question regarding structure. What is the proper configuration of NGINX instances when you want to have multiple configurations of NGINX, but only 1 set of binaries? You can use the '-c' flag to point to ano

Re: Question on Instance structure.

2022-10-27 Thread Sergey A. Osokin
Hi Jon, hope you're doing well. On Thu, Oct 27, 2022 at 05:05:32PM +, jonmcalexander--- via nginx wrote: > I have a question regarding structure. > > What is the proper configuration of NGINX instances when you want to > have multiple configurations of NGINX, but only

Question on Instance structure.

2022-10-27 Thread jonmcalexander--- via nginx
I have a question regarding structure. What is the proper configuration of NGINX instances when you want to have multiple configurations of NGINX, but only 1 set of binaries? Thanks, Dream * Excel * Explore * Inspire Jon McAlexander Senior Infrastructure Engineer Asst. Vice President He/His

Re: Error log question

2022-07-24 Thread Jay Haines
Thank you! On 7/23/22 18:15, Maxim Dounin wrote: Hello! On Sat, Jul 23, 2022 at 04:59:35PM -0400, Jay Haines wrote: My nginx error log is being filled with errors which I believe are being surfaced from OpenSSL. The log entries number in the hundreds of thousands per day and I understand the

Re: Error log question

2022-07-23 Thread Maxim Dounin
Hello! On Sat, Jul 23, 2022 at 04:59:35PM -0400, Jay Haines wrote: > My nginx error log is being filled with errors which I believe are being > surfaced from OpenSSL. The log entries number in the hundreds of > thousands per day and I understand they are most likely due to > conditions beyond

Error log question

2022-07-23 Thread Jay Haines
Hello, My nginx error log is being filled with errors which I believe are being surfaced from OpenSSL. The log entries number in the hundreds of thousands per day and I understand they are most likely due to conditions beyond my control. Examples of the log entries are: 2022/07/23 16:26:32 [

Re: Question about rotating log files with USR1 signal

2022-07-19 Thread Fabiano Furtado Pessoa Coelho
Thanks! This ticket https://trac.nginx.org/nginx/ticket/376 is exactly my doubt. You helped me a lot. On Tue, Jul 19, 2022 at 12:17 AM Maxim Dounin wrote: > > Hello! > > On Mon, Jul 18, 2022 at 01:37:47PM -0300, Fabiano Furtado Pessoa Coelho wrote: > > > As described in the official documentati

Re: Question about rotating log files with USR1 signal

2022-07-18 Thread Maxim Dounin
Hello! On Mon, Jul 18, 2022 at 01:37:47PM -0300, Fabiano Furtado Pessoa Coelho wrote: > As described in the official documentation > http://nginx.org/en/docs/control.html#logs "The master process will > then re-open all currently open log files and assign them an > unprivileged user under which t

Question about rotating log files with USR1 signal

2022-07-18 Thread Fabiano Furtado Pessoa Coelho
Hi... As described in the official documentation http://nginx.org/en/docs/control.html#logs "The master process will then re-open all currently open log files and assign them an unprivileged user under which the worker processes are running, as an owner.", the owner of the log file changes after t

Re: Reverse proxy question

2022-07-02 Thread Francis Daly
On Thu, Jun 23, 2022 at 08:19:06AM +0300, Saint Michael wrote: Hi there, > I have these substitution rules: > subs_filter "https://www.postimees.ee"; "https://postimees.oneye.us"; gir break; > subs_filter "www.postimees.ee" "postimees.oneye.us" gir break; > subs_filter "http://(.*).postimees.ee/(

Reverse proxy question

2022-06-22 Thread Saint Michael
I am proxying a website where there is a link like this: https://arvamus.postimees.ee/7550782/lauri-vahtre-tead-kull-kes-utles-n-tahega-sona-ja-siis-juhtus-ei-voi-oelda-mis#_ga=2.218428057.1478980589.1655961279-1635368780.1655961270 my new site is https://postimees.oneye.us I have these substituti

Question about rewrite in nginx.conf using a variable ?

2021-12-11 Thread Stephen D. Scotti, M.D.
I have a configuration for a Docker NGINX container that works OK with my 'static' configuration, but I’d like to maybe use a variable in the proxy rewrite to avoid have to duplicate a location block for the server. A sample Static setup with some of the extra stuff removed is shown below. That

Re: I have a question from a website I visit often

2021-07-05 Thread Thomas Ward
This has nothing to do with NGINX.  NGINX has nothing to do with Flyxtrade.  You will need your local law enforcement to help you with lost money. Original Message From: "Hưng Vĩnh" Sent: Mon Jul 05 03:36:02 EDT 2021 To: nginx@nginx.org Subject: I have a quest

Re: I have a question from a website I visit often

2021-07-05 Thread maliubiao
If you lost your money, please seek police for help, this is a tech mail list Hưng Vĩnh 于2021年7月5日周一 下午3:36写道: > Hi NGINX! > Today, I already subscribed for Mailing and talk about a website. > Few days ago, I login into website have a link: https://flyxtrade.com. > And that website is still work

I have a question from a website I visit often

2021-07-05 Thread Hưng Vĩnh
Hi NGINX! Today, I already subscribed for Mailing and talk about a website. Few days ago, I login into website have a link: https://flyxtrade.com. And that website is still working fine. Early July, I login into that link website and it show me "Welcome to nginx" not "Flyxtrade - Most secure crypt

Re: Question about IF and auth subrequest

2021-02-25 Thread Vincent Blondel
Thank You for the update, Will try and let You know ... -V. On Wed, Feb 24, 2021 at 9:03 PM Maxim Dounin wrote: > Hello! > > On Wed, Feb 24, 2021 at 06:44:49PM +0100, Vincent Blondel wrote: > > > Thank You for the swift answer Maxim. > > If I understand, you mean something like that should be go

Re: Question about IF and auth subrequest

2021-02-24 Thread Maxim Dounin
Hello! On Wed, Feb 24, 2021 at 06:44:49PM +0100, Vincent Blondel wrote: > Thank You for the swift answer Maxim. > If I understand, you mean something like that should be going to Work ... > > location /subrequest/ { > proxy_pass xxx; > } > location /anyrequest/ { > auth_request /subrequest/; > e

Re: Question about IF and auth subrequest

2021-02-24 Thread Vincent Blondel
off; proxy_set_header Content-Length ""; proxy_pass http://backend; } -V. On Wed, Feb 24, 2021 at 3:01 PM Maxim Dounin wrote: > Hello! > > On Wed, Feb 24, 2021 at 10:39:57AM +0100, Vincent Blondel wrote: > > > Hello all, > > I have a quick question about the u

Re: Question about IF and auth subrequest

2021-02-24 Thread Maxim Dounin
Hello! On Wed, Feb 24, 2021 at 10:39:57AM +0100, Vincent Blondel wrote: > Hello all, > I have a quick question about the usage of IF and auth_request. > I would like to know if it is possible to use a IF statement to condition > the proxy behaviour of one /location depending on

Question about IF and auth subrequest

2021-02-24 Thread Vincent Blondel
Hello all, I have a quick question about the usage of IF and auth_request. I would like to know if it is possible to use a IF statement to condition the proxy behaviour of one /location depending on the response headers of the sub auth request ... location /subrequest/ { proxy_pass xxx

Question about limit_req_zone and max shared memory

2021-02-22 Thread Christos Chatzaras
I want to rate limit PHP requests with "client ip + vhost + same url" but on same servers sometimes I see: [alert] 78841#0: could not allocate node in limit_req zone "req_limit_per_ip_per_uri" which causes 429 errors in all domains. - FreeBSD/amd64 - # Max connections events { wor

Re: RE: RE: RE: Redirect Question for Directory Structure Change

2020-09-10 Thread figshta
Reinis, Thank you so much for all your help! I have succeeded in getting things set up for now. I couldn't have done it with out you guys. I have learned a lot form you and Francis and I am very grateful. Thank you for being patient with my ignorance. Sorry to both of you for wasting your time

Re: Redirect Question for Directory Structure Change

2020-09-10 Thread J.R.
You really should use a custom named capture group as the default "$1" (and $2, $3, $4...) can cause erroneous output if there is any other capturing going on in your configuration files... i.e. location ~ ^/e/(?.*) { return 301 /$x1$is_args$args; } As someone else mentioned, be

Re: RE: RE: RE: Redirect Question for Directory Structure Change

2020-09-10 Thread figshta
>You should clean cache (or set to never cache) for each testing session/config change as browsers tend to cache the redirects very heavily (especially for static content). >A better way as Francis suggested is to use a curl or other tools (like wget -S ..) which don't cache anything and you'll al

RE: RE: RE: Redirect Question for Directory Structure Change

2020-09-10 Thread Reinis Rozitis
> Please bear with me... > It seems that I'm getting different results than I described earlier... > > In fact it is now working for the most part... > The errors are limited to certain files in Chrome on the Mac, but not in > Safari > or Firefox. You should clean cache (or set to never cache) f

Re: RE: RE: Redirect Question for Directory Structure Change

2020-09-10 Thread figshta
Thank you Reinis! Please bear with me... It seems that I'm getting different results than I described earlier... In fact it is now working for the most part... The errors are limited to certain files in Chrome on the Mac, but not in Safari or Firefox. >What do you mean by "got deeper" can you g

RE: RE: Redirect Question for Directory Structure Change

2020-09-10 Thread Reinis Rozitis
> I was wrong... > > >This seems to work: > >>rewrite ^/e/(.*) /$1 permanent; > > It only works for the first level... > 'threedaystubble.com/Gallery.html' works but other links from that page that > got deeper into the file structure do not! What do you mean by "got deeper" can you give a sampl

Re: RE: Redirect Question for Directory Structure Change

2020-09-09 Thread figshta
I was wrong... >This seems to work: >>rewrite ^/e/(.*) /$1 permanent; It only works for the first level... 'threedaystubble.com/Gallery.html' works but other links from that page that got deeper into the file structure do not! So, maybe map directive is needed after all... I'm planing to try

Re: RE: Redirect Question for Directory Structure Change

2020-09-09 Thread figshta
Thank you Reinis. I really appreciate your help and your patience. I am trying to learn this, so seeing what how it works is very useful. To be clear, hopefully, I need all the (multiple) subdirectories of threedaystubble.com/e/ in existing inbound links to refer to the new structure threedaystub

RE: Redirect Question for Directory Structure Change

2020-09-09 Thread Reinis Rozitis
It is a bit unclear if you want only a single rewrite or are there multiple different directory mappings/redirects. > I tried a couple of ideas, but they didn't work, I thought this location > directive > inside a server block was best, but it didn't work. > > location = /e { >return 31

Redirect Question for Directory Structure Change

2020-09-09 Thread figshta
I'm looking for help with a permanent site-wide redirect. I have a website that I moved to a new server. For some crazy reason the old server had an odd structure that I am changing. The URL root for the old site is http://threedaystubble.com/e/ I have changed it to be http://threedaystubble.com

Re: Quick question on NGINX cache

2020-05-28 Thread Francis Daly
On Thu, May 28, 2020 at 01:20:04PM +1000, Jore wrote: Hi there, > Just chasing up below, if anyone has any suggestions? What request do you make? What response do you get? What response do you want instead? > So to recap, the situation is, I have nginx running Wordpress with the > Hypercache pl

Re: Quick question on NGINX cache

2020-05-27 Thread Jore
Hi everyone, Just chasing up below, if anyone has any suggestions? So to recap, the situation is, I have nginx running Wordpress with the Hypercache plugin but only the homepage is cached, other pages "miss" according to page headers. Here is contents of the sites-enabled conf i

Re: Quick question on NGINX cache

2020-05-24 Thread Jore
Hi there, Thanks for that. Could you provide an example conf by any chance please, so I can get my head around that? Thanks! Jore On 24/5/20 8:56 am, Alex Evonosky wrote: > Jore- > > I applied the proxy_hide_header for no-cache headers to NGINX can > process it and cache it. > > On Sat, May 23

Re: Quick question on NGINX cache

2020-05-23 Thread Alex Evonosky
Jore- I applied the proxy_hide_header for no-cache headers to NGINX can process it and cache it. On Sat, May 23, 2020 at 5:17 PM Jore wrote: > Hi Alex/all, > > How did you fix? > > I've got a very similar issue. > > nginx running Wordpress with the Hypercache plugin but only the homepage > is c

RE: Re: Quick question on NGINX cache

2020-05-23 Thread 7149144120
Iol -Original Message- From: Sent: Sat, 23 May 2020 16:18:33 -0400 To: 7149144...@txt.att.net Subject: Re: Quick question on NGINX cache >"Can you be more specific? Which "cache"? Browser cache? Nginx content >cache? try_files has nothing to do with c

Re: Quick question on NGINX cache

2020-05-23 Thread Jore
Hi Alex/all, How did you fix? I've got a very similar issue. nginx running Wordpress with the Hypercache plugin but only the homepage is cached, other pages "miss" according to page headers. Thanks, Jore On 24/5/20 7:04 am, Alex Evonosky wrote: > Disregard, found the issue. > > thank you. > >

Re: Quick question on NGINX cache

2020-05-23 Thread Alex Evonosky
Disregard, found the issue. thank you. On Sat, May 23, 2020 at 4:18 PM Alex Evonosky wrote: > "Can you be more specific? Which "cache"? Browser cache? Nginx content > cache? try_files has nothing to do with caching..." > > > Nginx content cache > > > "Either way, you need to check your headers

Re: Quick question on NGINX cache

2020-05-23 Thread Alex Evonosky
"Can you be more specific? Which "cache"? Browser cache? Nginx content cache? try_files has nothing to do with caching..." Nginx content cache "Either way, you need to check your headers to ensure that they allow caching for said pages. Also if any cookies are being sent then nginx won't cache

Re: Quick question on NGINX cache

2020-05-23 Thread J.R.
> And the main page caches OK, but any page the resides on the "?page_id" is > not getting cached. Is there more to the "try_files" that needs applied > for caching of these permalinks? Can you be more specific? Which "cache"? Browser cache? Nginx content cache? try_files has nothing to do with c

Quick question on NGINX cache

2020-05-22 Thread Alex Evonosky
This should be pretty simple as I really cannot find a good answer on: Running Wordpress with the default permalinks (?page_id=xxx) On NGINX conf, I tried: location / { try_files $uri $uri/ /$args /index.php?$args; } And the main page caches OK, but any page the resides on the "?page_id" is no

Re: Question about proxy_cache_min_uses

2020-05-10 Thread J.R.
> My concern is as follows, proxy_cache_min_uses=1 effectively caches > everything, which is too much... But proxy_cache_min_uses=2 doesn't cache > enough. I'm struggling to understand exactly how proxy_cache_min_uses works, > by setting it to 2 nginx needs to somehow know that 2 requests were made

Question about proxy_cache_min_uses

2020-05-09 Thread essenz
When I did a search for this I only found one thread, but it was in Russian and hard to translate. I currently playing with an image cache for application frontend to a "massive" amount of proxied images. With proxy_cache_min_uses=1 my cache grows extremely fast and I cap it at 100G (for disk perf

Re: Question about root path for php-fpm

2020-03-20 Thread Francis Daly
es other variables that might depend on the "root" setting; whether they are used by your php script being processed by your php service is a separate question. > Currently, I have this folder structure > > $ ls ~/htdocs/ > build.xml classes controllers etc includes i

Question about root path for php-fpm

2020-03-19 Thread Mahmood Naderan
Hi I am following a document but something seems to be a typo and I want to be sure about that. 1) It says: In the webserver root directory, we will install the Olio PHP application, we will call this directory $APP_DIR: o cd /webserver/root/dir (e.g. /home/username/htdocs/ created when we install

Re: stream server name question

2019-08-30 Thread Francis Daly
On Mon, Aug 26, 2019 at 08:55:31PM -0400, Louis Garcia wrote: Hi there, > I am able to use $ssl_preread_server_name to get the server name. This is > with https requests. Is there a corresponding embedded variable for http > requests? No. "stream" does not know about http or https. "stream" kn

Re: stream server name question

2019-08-26 Thread Phillip Odam
Not inside the stream it won't... you'll need the map to at least be inside http and probably server. [RosettaHealth] Phillip Odam Principal Engineer, RosettaHealth rosettahealth.com e: phillip.o...@rosettahealth.com o: 202.350.4343 a: 2 Wisconsin Circle, Chevy Chase, MD [twitte

Re: stream server name question

2019-08-26 Thread Louis Garcia
Does not work. stream { map $host $name { plex.montclaire.lan app1; transmission.montclaire.lan app2; default default; } upstream app1 {

Re: stream server name question

2019-08-26 Thread Phillip Odam
Hi Louis The variable I think you're looking for is $host - http://nginx.org/en/docs/http/ngx_http_core_module.html#variables On 8/26/19 8:55 PM, Louis Garcia wrote: I am able to use $ssl_preread_server_name to get the server name. This is with https requests. Is there a corresponding embedd

stream server name question

2019-08-26 Thread Louis Garcia
I am able to use $ssl_preread_server_name to get the server name. This is with https requests. Is there a corresponding embedded variable for http requests? I would like to setup streams to different backend servers based on http requests. Example below works for https but not http. Thanks. stream

nginx ingress controller question about use of informers

2019-06-12 Thread ayma
Looking at the nginx ingress controller code had a question about the design. See that there is a function, getPodsForIngressBackend, ( https://github.com/nginxinc/kubernetes-ingress/blob/master/internal/k8s/controller.go#L15860 ). It looks like in this function a call is made to kube api to

Re: a proxy_module question ,maybe a bug?

2019-03-25 Thread Maxim Dounin
Hello! On Sat, Mar 23, 2019 at 12:20:26AM +0800, 村长 wrote: > nginx version: nginx/1.10.3 > uname: Linux 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64 > GNU/Linux > VPS: Linode $5 > > > > I set about 900 subsite like this: > > > proxy_cache_path /var/cache/nginx/abc.com/aa

a proxy_module question ,maybe a bug?

2019-03-22 Thread 村长
nginx version: nginx/1.10.3 uname: Linux 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64 GNU/Linux VPS: Linode $5 I set about 900 subsite like this: proxy_cache_path /var/cache/nginx/abc.com/aaa levels=1:2 use_temp_path=off keys_zone=aaa.abc.com:64k inactive=8h max_size=128m

Re: question about not found

2019-02-28 Thread Christos Chatzaras
> On 28 Feb 2019, at 15:53, Maxim Dounin wrote: > > Hello! > > On Thu, Feb 28, 2019 at 03:30:22PM +0200, Christos Chatzaras wrote: > >>> On 28 Feb 2019, at 15:06, Christos Chatzaras wrote: >>> On 28 Feb 2019, at 14:47, Christos Chatzaras wrote: If I try to visit an image t

Re: question about not found

2019-02-28 Thread Maxim Dounin
Hello! On Thu, Feb 28, 2019 at 03:30:22PM +0200, Christos Chatzaras wrote: > > On 28 Feb 2019, at 15:06, Christos Chatzaras wrote: > > > >> On 28 Feb 2019, at 14:47, Christos Chatzaras wrote: > >> > >> If I try to visit an image that doesn't exist I get: > >> > >> "404 Not Found" > >> > >>

Re: question about not found

2019-02-28 Thread Christos Chatzaras
> On 28 Feb 2019, at 15:06, Christos Chatzaras wrote: > > > >> On 28 Feb 2019, at 14:47, Christos Chatzaras wrote: >> >> If I try to visit an image that doesn't exist I get: >> >> "404 Not Found" >> >> If I add a location / { } then I get: >> >> "File not found" >> >> In both cases usi

Re: question about not found

2019-02-28 Thread Christos Chatzaras
> On 28 Feb 2019, at 14:47, Christos Chatzaras wrote: > > If I try to visit an image that doesn't exist I get: > > "404 Not Found" > > If I add a location / { } then I get: > > "File not found" > > In both cases using curl -I http://www.example.com/image.png >

question about not found

2019-02-28 Thread Christos Chatzaras
If I try to visit an image that doesn't exist I get: "404 Not Found" If I add a location / { } then I get: "File not found" In both cases using curl -I http://www.example.com/image.png I get: HTTP/1.1 404 Not Found Server: nginx Date: Thu, 28 Feb 2019 12:46:

Re: njs question

2019-02-26 Thread Dmitry Volyntsev
On 26.02.2019 9:24, ?? wrote: hello! Hello! I would like to ask some questions about the development of NJS. Hi ?? First: when will NJS improve the ES6 standard? According to http://nginx.org/en/docs/njs/index.html we plan to extend coverage of ES6 and later specifications. This i

njs question

2019-02-25 Thread ??????
hello! Hello! I would like to ask some questions about the development of NJS. First: when will NJS improve the ES6 standard? Second: can NJS be made into nodejs similar to nodejs? Can import third-party js files through "require" script. Thus realize the transformation from js to AST;

nginx reverse proxy question

2019-02-13 Thread Thomas Schmiedl
Hello, I use the xupnpd2 mediaserver (https://github.com/clark15b/xupnpd2) on my router to transfer some HLS-streams to my TV. xupnpd2 doesn't support https (the author doesn't want add https support and I'm not a developer). I try to receive HLS-streams from this site: https://www.mall.tv/zive, w

Re: GeoIP Question

2019-01-08 Thread kycedbi
You did not tell nginx where the geoip file is located. https://nginx.org/docs/http/ngx_http_geoip_module.html#geoip_country geoip_country /usr/share/GeoIP/GeoIP.dat; Posted at Nginx Forum: https://forum.nginx.org/read.php?2,282589,282593#msg-282593 _

Re: GeoIP Question

2019-01-08 Thread petrosetta
Ugh. I clicked too quickly. Sorry. When I test this setup, I get a forbidden in the US and a programmer in Jamaica gets the same thing. Can't figure out why. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,282589,282591#msg-282591 ___ nginx m

GeoIP Question

2019-01-08 Thread petrosetta
Hi All I would really appreciate some help here. I want to restrict all countries except the US and Jamaica (JM). load_module "/usr/local/libexec/nginx/ngx_http_geoip_module.so"; These are my entries in nginx.conf Under http map $geoip_country_code $country_access { "US" 0;

Re: BasicAuth config question

2018-10-25 Thread pg151
On Thu, Oct 25, 2018, at 10:23 AM, Maxim Dounin wrote: > In your second config, auth_basic is only configured for location > "~ ^/sec", but not for location "= /sec/status". Since the request > to /sec/status is handled in the latter, auth_basic won't apply. > > Note that location matching s

Re: BasicAuth config question

2018-10-25 Thread Maxim Dounin
Hello! On Thu, Oct 25, 2018 at 09:56:27AM -0700, pg...@dev-mail.net wrote: > If I define > > nginx.conf > ... > server { > ... > include includes/conf1.inc; > include includes/conf2.inc; >

BasicAuth config question

2018-10-25 Thread pg151
If I define nginx.conf ... server { ... include includes/conf1.inc; include includes/conf2.inc; ... } ... cat includes/co

Re: Understood Diretive Location and Regex (concept question).

2018-09-19 Thread Labs Ocozzi
tks Anoop Em 19/09/2018 07:51, Anoop Alias escreveu: location ~ /\. regex location for /. The back slash before dot is just an escape char as dot has special meaning in regex --- location ~ \.php$ regex location for anything ending in .php He

Re: Understood Diretive Location and Regex (concept question).

2018-09-19 Thread Anoop Alias
location ~ /\. regex location for /. The back slash before dot is just an escape char as dot has special meaning in regex --- location ~ \.php$ regex location for anything ending in .php Here again the backslash before dot serve as an escape On We

Understood Diretive Location and Regex (concept question).

2018-09-19 Thread Labs Ocozzi
Dears, in me Lab i have nginx work fine, but i dont understood the diretive location with regex "~ /\. " "~*  \." and "~ \.php$" bellow examples in me enviroment. location ~ /\. { deny all; access_log off; log_not_found off; }

Question

2018-09-14 Thread Saint Michael
> > I am a new developer and need to publish several database tables with > relationship one to many, etc,. What web framework is fastest to learn ? I > am looking at Mojolicios or Catalyst, but don´t know if they are necessary > or not. For a new project, what parts would you choose? I have read

question: http2_push_preload request with cookie

2018-07-25 Thread powiii
it a different request altogether My question is: how are we supposed to treat such a case? Are there any plans to support this? Thanks in advance, P.S. The ruby script I've used is the following and can be run with `bundle exec rackup test.rb` (requires ruby and bundler): ``` require &#x

Re: Question on having multiple SSL cert for multiple domains

2018-07-04 Thread Ralph Seichter
On 04.07.2018 17:03, Danny Horne via nginx wrote: > Easiest way (in my opinion) would be to place the ssl configurations > with the appropriate server block Agreed. The SSL configuration parameters can either be added directly or via 'include' statements. Personally, I prefer using generator scri

Re: Question on having multiple SSL cert for multiple domains

2018-07-04 Thread Danny Horne via nginx
On 04/07/18 15:08, Hamidul Islam wrote: > Hi NGINX Support > > It will be very helpful to advise how can we add 2 different SSL for 2 > URLs at the nginx configuration. > > Can you advise how can we add a SSL cert for one domain (example > for site2.ca ) in the config02 file and w

Question on having multiple SSL cert for multiple domains

2018-07-04 Thread Hamidul Islam
Hi NGINX Support It will be very helpful to advise how can we add 2 different SSL for 2 URLs at the nginx configuration. At present we have 2 configuration files for managing the URLs At one of the configuration (Config file 01) file we have one site with SSL cert. And at another configuration

Re: Cache question

2018-06-28 Thread Friscia, Michael
(203) 737-7932 - office (203) 931-5381 - mobile http://web.yale.edu<http://web.yale.edu/> From: nginx on behalf of Peter Booth Reply-To: "nginx@nginx.org" Date: Thursday, June 28, 2018 at 12:46 PM To: Wiktor Kwapisiewicz via nginx Subject: Re: Cache question Sure is. Look at th

Re: Cache question

2018-06-28 Thread Peter Booth
Sure is. Look at the stale-if-error stale-while-revalidate proxy_cache_use_stale proxy_cache_lock etc Can you describe the use case a bit more? Why don't you want to cache this particular content? Is it that its dynamic and a fresher version is always preferable but the stale is good enough in

Cache question

2018-06-28 Thread Friscia, Michael
I’m working through use cases for cache in a presentation and had a thought jump into my head. We have a server block where most things are cached, but a few locations are set not to use the cache. But the thought is that even thought we don’t want to use a local cache and always fetch from upst

Re: rewrite question

2018-06-12 Thread shiz
'if ($args ~ "&$") { return 400; }' Thanks a lot! Exactly what I needed :) Posted at Nginx Forum: https://forum.nginx.org/read.php?2,94128,280124#msg-280124 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: rewrite question

2018-06-11 Thread Richard Stanway via nginx
That IP resolves to rate-limited-proxy-72-14-199-18.google.com - this is not the Google search crawler, hence why it ignores your robots.txt. No one seems to know for sure what the rate-limited-proxy IPs are used for. They could represent random Chrome users using the Google data saving feature, he

Re: rewrite question

2018-06-11 Thread Francis Daly
On Thu, Jun 07, 2018 at 07:57:43PM -0400, shiz wrote: Hi there, > Recently, Google has started spidering my website and in addition to normal > pages, appended "&" to all urls, even the pages excluded by robots.txt > > e.g. page.php?page=aaa -> page.php?page=aaa& > > Any idea how to redirect/r

  1   2   3   4   >