Documentation of Nginx configuration file directives

2023-06-30 Thread Sam Hobbs
Is there official documentation of the nginx configuration file 
directives? I find many articles describing nginx configuration files 
but they do not describe all of the directives, certainly not like 
official documentation typically does.

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


502 Bad Gateway using Cloudflare and Kestrel

2023-09-03 Thread Sam Hobbs

I hope I can at  least get help diagnosing this.

I have an ASP.Net Core application in a Ubuntu headless VM (DigitalOcean 
Droplet) using a page TLD (therefore I must use SSL) using Cloudflare. 
When I execute it using:

dotnet domain.page.dll --launch-profile https
Then use:

curl -k https://127.0.0.1:5443

(the address that Kestrel is listening to) I get a page that I am 
expecting. Therefore Kestrel and the application seem to be working. 
Cloudflare is managing the domain name and I have a Cloudflare 
certificate in the appsettings.json file. I hope that since Kestrel is 
working it has accepted the certificate.


When I browse to the domain from another system (over the internet) 
Cloudflare is saying 502 Bad Gateway and that the problem is in the 
server.  Is there a log somewhere showing the incoming request and more 
details of the error?


The following is my server block.

server {
listen 443 ssl;
listen [::]:443 ssl;

#ssl_client_certificate /etc/ssl/cloudflare.crt;

ssl_certificate/etc/ssl/domain.crt;
ssl_certificate_key/etc/ssl/domain.pem;
server_name domain.page *.domain.page;

location / {
proxy_passhttp://127.0.0.1:5443;
proxy_http_version 1.1;
proxy_set_header   Upgrade $http_upgrade;
proxy_set_header   Connection keep-alive;
proxy_set_header   Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header   X-Forwarded-Proto $scheme;
}
}


I get the same results if I uncomment the ssl_client_certificate.

Is there a way to determine with relative certainty that the 502 is 
caused by something in nginx and not Cloudflare or Kestrel or the 
application? Is there a way to get more details? If someone knows how to 
fix the problem regardless of where and why it is happening then that 
would be great help.
___
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx


Re: 502 Bad Gateway using Cloudflare and Kestrel

2023-09-04 Thread Sam Hobbs



Francis Daly wrote on 9/4/2023 1:05 AM:

 proxy_passhttp://127.0.0.1:5443;

You probably have a space after proxy_pass in your actual config; but
you probably should also have "https://"; not "http://"; there as well,
since your upstream service is listening for https connections.


Thank you! It works.

Yes, there is a space in there. The formatting must have gotten messed 
up in the message you received.

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


Re: Run PHP on NGINX

2023-10-17 Thread Sam Hobbs
The original HTML had forms. Forms still exist for HTML. A form can 
specify that a different HTML file be shown when the form is submitted. 
Between the the form submission and the showing of the second HTML file, 
a script, called a CGI script, can be executed to process the form. And 
that is how server-side languages such as PHP are executed. The original 
CGI is inefficient. FastCGI is more efficient. Therefore PHP websites 
execute PHP using FastCGI. Other servers such as Apache and IIS use 
FastCGI or something very similar.



Jeff wrote on 10/17/2023 8:50 AM:

Can PHP code be run using NGINX?

I am new to web server stuff, so just investigating.

Thanks
___
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


Custom scheme/protocol

2023-10-21 Thread Sam Hobbs
Are there any articles and/or samples of a custom scheme or protocol? 
What I mean by scheme or protocol is the first part of an URL, such as 
HTTP and FTP. What is necessary to develop a custom protocol in a server?


This is not important. It is something I have been curious about for years.

I assume the details are dependent on the server. Stack Overflow has 
questions like c# - Register multiple applications to the same custom 
protocol - Stack Overflow 
. 
They ask about configuring protocols within the client. It is difficult 
to find articles about implementing custom protocols in a server.
___
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx


Re: Problem using nginx as reverse proxy server on Windows Server 2016

2024-02-03 Thread Sam Hobbs



insecure HTML and secure HTTPS webpage requests

Did you mean to say insecure HTTP and secure HTTPS webpage requests?
process secure HTMLS requests as well 

Did you mean to say process secure HTTPS requests as well?
___
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx


Re: announcing freenginx.org

2024-02-15 Thread Sam Hobbs

Enshittification is not a generally accepted term. It was created. There are 
probably simpler ways to say what is meant, such as degrade and shift.



Manuel wrote on 2/14/2024 5:33 PM:

@F5 get an advisor for open source
and maybe read something about enshittification m(


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