Re: server_name for localhost actually matches .localhost

2018-12-17 Thread oscaretu
Hello, Gianluigi I suppose the response is coming from the default server: if the vhost servername of the request doesn't match any of the defined ones, the answer will come from the default server. If you add an alternate servername "test.localhost" where you defined "localhost" in the config

Re: Error: Couldn't connect to server

2018-04-28 Thread oscaretu
Hello, Mohan. Have you tried to make simultaneous request against the server from another computer, using curl from the command line? It the request work in the second computer, there is no problem in the server, and it will be in the client. Perhaps you are looking for a problem in the nginx

Re: Monitoring http returns

2018-04-13 Thread oscaretu
Perhaps this can be useful for you: https://github.com/Lax/nginx-http-accounting-module Kind regards, Oscar On Wed, Apr 11, 2018 at 6:19 AM, Jeff Abrahamson wrote: > I want to monitor nginx better: http returns (e.g., how many 500's, how > many 404's, how many 200's, etc.), as

Re: Flush access log buffer

2018-02-27 Thread oscaretu .
Hello! If you have installed sysdig , [ https://www.sysdig.org/] (a kind of strace but for all the computer, not just for a only process) you can do commands like: sysdig fd.name contains .gz and it will show information about who

Re: Quick successive reload makes "bind () xxxx failed, Address already in use" error

2018-01-23 Thread oscaretu .
If you search in Google detect a IP port is in use in linux you can find several ways to detect in the port is in use, for Windows and Unix - https://www.cyberciti.biz/faq/unix-linux-check-if-port-is-in-use-command/ -

Re: "server" directive is not allowed here error

2017-06-04 Thread oscaretu .
Hello, Peter. In the company where I work the file nginx.conf is bigger than 1 MB. Por each virtual server, there are lots of definitions that are almost equal. If I where the one who had to decide the file structure, I problably choose to use a different file for each virtual host, so when we

Re: nginx access logs to mysql

2017-04-20 Thread oscaretu .
...@pucp.pe> wrote: > yes, I could do it but I want just store for example the customer, the > function name, the date after with those information I could filter my > report through a page.php > But with json I don't know how can I do that? > > > 2017-04-20 9:57 GMT+02:00 oscaretu

Re: nginx access logs to mysql

2017-04-20 Thread oscaretu .
> So, I thought put all my information on a database like mysql > > 2017-04-20 9:11 GMT+02:00 oscaretu . <oscar...@gmail.com>: > >> Sara, why don't you process the log file just with grep / pcregrep to get >> just the lines that containt that function name? >>

Re: nginx access logs to mysql

2017-04-20 Thread oscaretu .
Sara, why don't you process the log file just with grep / pcregrep to get just the lines that containt that function name? On Thu, Apr 20, 2017 at 9:05 AM, SARA QUISPE MEJIA wrote: > I want to parse the log file respect to a client that means to make a > report of how the

Re: Windows 1024 Connections Limit

2017-04-13 Thread oscaretu .
Since two days ago Windows Vista is part of the past: http://www.theverge.com/2017/4/11/15241580/microsoft-windows-vista-end-of-support Kind regards, Oscar El El jue, 13 abr 2017 a las 9:55, B.R. via nginx escribió: > Even though using nginx on Windows goes way over my head

Re: Nginx record length during disk IO

2017-01-16 Thread oscaretu .
When a call to rename(2) returns -1 and in errno the value es EXDEV, it means the system file doesn't support the rename feature, so the application is supposed to be able to solve this creating a file in the new filesystem and deleting the old file. This is something that I read recently about

Re: Performance test caps at 600 Mbit/s

2017-01-09 Thread oscaretu .
Hello, I don't find anything in Google about snfnettest Can you confirm that the name is OK? Kind regards, Oscar On Mon, Jan 9, 2017 at 10:02 PM, pbooth wrote: > > Both NIC supports the speed of 1000Mb/s > > How do you know? Your kernel or NIC config might be

Re: [PATCH] Escape strings produced by the `%V` format specification

2017-01-03 Thread oscaretu .
Hello, Joshua. What values take %%TEST_GLOBALS%% and %%TEST_GLOBALS_HTTP%%? I've searched them in Google and I didn't find anything related. Nor I was unable to find anything about them in the documentation for Test::Nginx ( http://search.cpan.org/~agent/Test-Nginx-0.25/lib/Test/Nginx.pm)

Re: Recommended limit_req and limit_conn for location ~ \.php$ {}

2016-09-27 Thread oscaretu .
Perhaps this can help: http://stackoverflow.com/questions/12022429/http-status-code-for-overloaded-server Another option is a *429 - Too Many Requests* response. Defined in RFC6585 - http://tools.ietf.org/html/rfc6585#section-4 The spec does not define how the origin server identifies the

Re: nginx input

2016-09-08 Thread oscaretu .
Hello Do you know that NGINX needs a configuration file ? Kind regards, Oscar On Thu, Sep 8, 2016 at 7:11 AM, Muhui Jiang wrote: > Hi > > I am using program analysis

This documents seems to be interesting to HTTP/2 server implementers

2016-08-04 Thread oscaretu .
Rules of Thumb for HTTP/2 Push -- *The intended audience is HTTP/2 server implementers, who want to support server push in their servers, and web developers, who think their pages may be benefit from server

Re: nginx makes mysqld die all the time

2015-08-19 Thread oscaretu .
Hello. Perhaphs this can help you about the out of memory: OOM Killer: https://www.google.com/search?client=ubuntuchannel=fsq=OOM+Kilerie=utf-8oe=utf-8 Kind regards, Oscar On Wed, Aug 19, 2015 at 8:02 AM, M. Fioretti mfiore...@nexaima.net wrote: On 2015-08-18 14:36, Steve Wilson wrote:

Re: Nginx doesn't redirect www no m in Safari, iPhone, iPad

2015-07-07 Thread oscaretu .
You should protect the URL with single quotes, to avoid the interpretation of character ! by the shell: curl -A iPad -i 'https://www.domain.com/#!/pt/--item-view/pt/32081/Mix-J' But if you put the URL https://www.domain.com/#!/pt/--item-view/pt/32081/Mix-J in a browser (at least in Firefox), the

Re: Nginx doesn't redirect www no m in Safari, iPhone, iPad

2015-07-07 Thread oscaretu .
Yo don't need to escape the ! if you delimit the URL with single quotes... On Tue, Jul 7, 2015 at 11:28 AM, ramsoft75 nginx-fo...@nginx.us wrote: Hi there all and thank's for the help Dear oscaretu, the curl was tested with doesn't help, because ! is a special character it needs a escaope

Re: A bit confused...

2015-06-12 Thread oscaretu .
Hello Can you try something command like the ones at http://unix.stackexchange.com/questions/2182/identifying-files-with-special-characters-in-its-name-in-a-terminal to see if you have special chars in some of the filenames? On Fri, Jun 12, 2015 at 3:50 AM, steve st...@greengecko.co.nz wrote:

Re: Redirect to domain TTFB very slow

2014-12-30 Thread oscaretu .
Hello Can you use tools like *strace* or *sysdig* to see where the time is being lost? Greetings, Oscar On Wed, Dec 31, 2014 at 12:34 AM, ASTRAPI nginx-fo...@nginx.us wrote: Hi On my Nginx server i use a domain domain.com and i have all files here:

Re: Safe log rotation

2014-10-02 Thread oscaretu .
I think you should remove the line: sleep 15 It doesnt' anything useful, It just delay the restart, so during 15 seconds the request will end been registered in the old log file mv /mnt/vg0-lv0/access.log /mnt/vg0-lv0/access.log.OLD sudo kill -USR1 `cat /var/run/nginx.pid` sleep 2 head -n 5

Re: Worker processes not shutting down

2014-09-20 Thread oscaretu .
Hello As another tool to analyze the problem similar to strace but more powerful, I suggest you to try sysdig http://www.sysdig.org/ https://www.google.com/search?client=ubuntuchannel=fsq=sysdigie=utf-8oe=utf-8 You can do a trace of everything in your system. Greetings, Oscar On Fri,

Re: Fetching HTTP value into config at start-up

2014-09-04 Thread oscaretu .
Hello, igorclark Perhahs you can create a shell to launch nginx, and before that, ejecute a shell to assign a environment variable as a result of the execution of a program, or create (update) a file that is to be included from nginx config file when starting Some ideas:

Re: understanding proxy_buffering

2014-01-19 Thread oscaretu .
Hello One side question. Have you calculated a estimation of the expected life of a SSD disk when you are writing on it continously? I suppose that in such a situation it will die quickly, due to the limited number of writes that the memory can support before getting damaged. Greetings. Oscar

Question about restarting nginx

2014-01-03 Thread oscaretu .
Hello. One question comes to my mind: Why doesn't nginx write something to the error log file when it restarts? (for example, with kill -HUP), just as Apache does. For example, in Apache, after kill -HUP $apache_pid, I can see in the error log file: [Tue Jan 22 11:42:50 2013] [notice] SIGHUP