Windows ARM64

2024-01-02 Thread Anthony Roberts
Hello,

A small introduction - I work on Linaro's Windows on Arm enablement team,
and we work on porting/enabling various open-source projects for the
platform.

We have recently done a small investigation, and it turns out nginx can be
compiled OOB on Windows ARM64 platforms with VS2022 - an example run from
our internal nightlies can be seen here:
https://gitlab.com/Linaro/windowsonarm/packages/nginx/-/jobs/5742208111

With the advent of things like Microsoft's Azure Windows ARM64
instances[0], and various client devices, it is a growing platform. Our
partners (Microsoft and Qualcomm) would be interested in seeing a release!

Is an official Windows ARM64 build something you have considered? Would you
consider it?

Thanks,
Anthony

[0]:
https://azure.microsoft.com/en-us/blog/azure-virtual-machines-with-ampere-altra-arm-based-processors-generally-available/
___
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx


Re: Calculating requests per second, per IP address

2024-01-02 Thread Rejaine Monteiro
Hi all!!

I appreciate everyone for the help.
 For now, I used the good old bash (awk, sort, uniq) to get the information
I need, but I'll try later to analyze the other tools and tips you guys
sent me!
Thanks and a great 2024 to everyone.


On Tue, Jan 2, 2024 at 12:24 AM jeremy ardley via nginx 
wrote:

>
> On 1/1/24 18:57, J Carter wrote:
> > Other than log aggregators, writing a script (python, perl, bash) is
> > likely the fastest approach. Consider sharing it if you do, I'm sure
> > others will find it useful.
> --
> An alternative option is to put haproxy as a front end to nginx.
> haproxy has very configurable rate limiting. See
>
> https://www.haproxy.com/blog/four-examples-of-haproxy-rate-limiting
> ___
> nginx mailing list
> nginx@nginx.org
> https://mailman.nginx.org/mailman/listinfo/nginx
>

-- 
*Esta mensagem pode conter informações confidenciais ou privilegiadas, 
sendo seu sigilo protegido por lei. Se você não for o destinatário ou a 
pessoa autorizada a receber esta mensagem, não pode usar, copiar ou 
divulgar as informações nela contidas ou tomar qualquer ação baseada nessas 
informações. Se você recebeu esta mensagem por engano, por favor avise 
imediatamente ao remetente, respondendo o e-mail e em seguida apague-o. 
Agradecemos sua cooperação.*
___
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx


Re: Windows ARM64

2024-01-02 Thread Edward Hoffman
Only if all source code is published.  

> On Jan 2, 2024, at 3:01 AM, Anthony Roberts  
> wrote:
> 
> 
> Hello,
> 
> A small introduction - I work on Linaro's Windows on Arm enablement team, and 
> we work on porting/enabling various open-source projects for the platform.
> 
> We have recently done a small investigation, and it turns out nginx can be 
> compiled OOB on Windows ARM64 platforms with VS2022 - an example run from our 
> internal nightlies can be seen here: 
> https://gitlab.com/Linaro/windowsonarm/packages/nginx/-/jobs/5742208111
> 
> With the advent of things like Microsoft's Azure Windows ARM64 instances[0], 
> and various client devices, it is a growing platform. Our partners (Microsoft 
> and Qualcomm) would be interested in seeing a release!
> 
> Is an official Windows ARM64 build something you have considered? Would you 
> consider it?
> 
> Thanks,
> Anthony
> 
> [0]: 
> https://azure.microsoft.com/en-us/blog/azure-virtual-machines-with-ampere-altra-arm-based-processors-generally-available/
> ___
> nginx mailing list
> nginx@nginx.org
> https://mailman.nginx.org/mailman/listinfo/nginx
___
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx


Re: Wrong content served

2024-01-02 Thread Daniel A. Rodriguez

Hi both Francis and Jake. Sorry for the late response


This is the content of such file

# cat /etc/nginx/snippets/location-letsencrypt.conf
location ^~ /.well-known/acme-challenge/ {
    alias /var/www/le_root/.well-known/acme-challenge/;
}

and the directory exists

# ls -alh /var/www/le_root/.well-known/acme-challenge/
total 28K
drwxr-xr-x 2 root root 4,0K ene  2 00:14 .
drwxr-xr-x 3 root root 4,0K sep  1  2021 ..
-rw-r--r-- 1 root root   87 sep  2  2021 9nxS2wAszlGI
-rw-r--r-- 1 root root   87 sep  9  2021 AEzjuq9P8yXQ
-rw-r--r-- 1 root root   87 sep  9  2021 TPlVMnrhufmE
-rw-r--r-- 1 root root   87 oct 14  2021 YbHZSf8CqW40
-rw-r--r-- 1 root root   87 sep  9  2021 ZHFolsWkDv90

and what curl returns

# curl -i http://material.av.unau.edu.ar/
HTTP/1.1 200 OK
Date: Tue, 02 Jan 2024 20:44:45 GMT
Server: Apache/2.4.58
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Set-Cookie: PHPSESSID=cfj2h18l4u9j99o6pa4k77eaff; path=/
Vary: Accept-Encoding
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8

  



   Oficina virtual - UNAU 
  

Such content is from another host: oficinavirtual.unau.edu.ar. Which is 
working as expected in its own domain.


I use acme.sh script to deploy SSL certificates.



El 26/12/23 a las 21:15, Jeff Dyke escribió:
In addition to Francis' always helpful ask.  You have a domain problem 
with material.av.domain  and it may be 
from /etc/hosts all the way to public DNS. Or, incorrectly supplied 
*location-letsencrypt.conf.*


If you provide that file contents, you'll likely see your own error as 
you send it (i've done it dozens of times, its not an insult)




On Tue, Dec 26, 2023 at 6:59 PM Francis Daly  wrote:

On Tue, Dec 26, 2023 at 07:57:41PM -0300, Daniel A. Rodriguez wrote:

Hi there,

> This behavior is driving me crazy. Currently have more than 30
sites behind
> this reverse proxy, but the latest is refusing to work.

Can you provide more details?

> Config is simple and pretty similar between them all.

"include" means "anything in that file is effectively in this
config". Nobody but you knows what is in that file.

> server {
>     listen 80;
>     server_name material.av.domain;
>
>     include /etc/nginx/snippets/location-letsencrypt.conf;
>
> #    return 301 https://$server_name$request_uri;
>
> }

Your test request is:

$ curl -i http://material.av.domain/

What response do you get? What response do you want to get instead?

The "return" is commented out, so unless there is something surprising
in the location-letsencrypt.conf file, I would expect a http 200
response
with the content of "the default" index.html file.

> If I point the browser to material.av.domain got redirected to
another
> sub-domain, among the 30 mentioned before. However, everything
else works
> just fine.

Can you show the response to the "curl" request, to see whether
"redirect"
is a http 301 from the web server, or is something like a http 200
from
the web server with maybe some javascript content that redirects to
"the wrong" place?

Cheers,

        f
-- 
Francis Daly fran...@daoine.org

___
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx


___
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx


--




https://correo.unau.edu.ar/skins/elastic/images/logo.svg";  width="73" 
height="96" />
Daniel A. RodriguezInformática, Conectividad y SistemasUniversidad Nacional del 
Alto UruguaySan Vicente - Misiones - Argentinahttps://informatica.unau.edu.ar";  
rel="noopener">informatica.unau.edu.ar




___
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx


Re: Windows ARM64

2024-01-02 Thread Maxim Dounin
Hello!

On Tue, Jan 02, 2024 at 11:03:03AM +, Anthony Roberts wrote:

> A small introduction - I work on Linaro's Windows on Arm enablement team,
> and we work on porting/enabling various open-source projects for the
> platform.
> 
> We have recently done a small investigation, and it turns out nginx can be
> compiled OOB on Windows ARM64 platforms with VS2022 - an example run from
> our internal nightlies can be seen here:
> https://gitlab.com/Linaro/windowsonarm/packages/nginx/-/jobs/5742208111

Yep, there shouldn't be any problems with building, at least when 
building nginx itself and/or when building OpenSSL with "no-asm".  
In more sophisticated cases, some adjustment might be needed, see 
https://hg.nginx.org/nginx/rev/3c4d81ea1338 for an example.

If you'll find any issues and/or need any help, don't hesitate to 
write here or in the nginx-devel@ mailing list.

> With the advent of things like Microsoft's Azure Windows ARM64
> instances[0], and various client devices, it is a growing platform. Our
> partners (Microsoft and Qualcomm) would be interested in seeing a release!
> 
> Is an official Windows ARM64 build something you have considered? Would you
> consider it?

As of now, there are no plans to publish additional official nginx 
for Windows builds.

Note well that nginx for Windows is in beta and unlikely to be 
considered production ready in the foreseeable future 
(https://nginx.org/en/docs/windows.html).  Its main purpose is to 
facilitate web development directly on Windows devices.

-- 
Maxim Dounin
http://mdounin.ru/
___
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx


Re: Windows ARM64

2024-01-02 Thread Edward Hoffman
Sorry. I misinterpreted the announcement. Is Windows ARM64 open source?

> On Jan 2, 2024, at 1:51 PM, Maxim Dounin  wrote:
> 
> Hello!
> 
>> On Tue, Jan 02, 2024 at 11:03:03AM +, Anthony Roberts wrote:
>> 
>> A small introduction - I work on Linaro's Windows on Arm enablement team,
>> and we work on porting/enabling various open-source projects for the
>> platform.
>> 
>> We have recently done a small investigation, and it turns out nginx can be
>> compiled OOB on Windows ARM64 platforms with VS2022 - an example run from
>> our internal nightlies can be seen here:
>> https://gitlab.com/Linaro/windowsonarm/packages/nginx/-/jobs/5742208111
> 
> Yep, there shouldn't be any problems with building, at least when
> building nginx itself and/or when building OpenSSL with "no-asm".  
> In more sophisticated cases, some adjustment might be needed, see
> https://hg.nginx.org/nginx/rev/3c4d81ea1338 for an example.
> 
> If you'll find any issues and/or need any help, don't hesitate to
> write here or in the nginx-devel@ mailing list.
> 
>> With the advent of things like Microsoft's Azure Windows ARM64
>> instances[0], and various client devices, it is a growing platform. Our
>> partners (Microsoft and Qualcomm) would be interested in seeing a release!
>> 
>> Is an official Windows ARM64 build something you have considered? Would you
>> consider it?
> 
> As of now, there are no plans to publish additional official nginx
> for Windows builds.
> 
> Note well that nginx for Windows is in beta and unlikely to be
> considered production ready in the foreseeable future
> (https://nginx.org/en/docs/windows.html).  Its main purpose is to
> facilitate web development directly on Windows devices.
> 
> --
> Maxim Dounin
> http://mdounin.ru/
> ___
> nginx mailing list
> nginx@nginx.org
> https://mailman.nginx.org/mailman/listinfo/nginx
___
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx