New answers tagged nginx
0 votes
Nginx bind to external IP only (listen hostname:port)
Turns out problem was attempt by both nginx (external ip) and an application server (lo-cal ip) trying to bind simultaneously when refusing to change port 443 fixed using: nano /etc/sysctl.conf net....
1 vote
nginx, how to serve different headers for specific client IPs?
You could use two geo blocks to define value and the fact that add_header will not send empty header. geo $remote_addr $csp_header { default ""; 1.1.1.1/32 "example-block-policy....
0 votes
Configure HTTP/3 on Debian 13 and Nginx 1.26.3
To configure NGINX with HTTP/3 on Debian 13: Install NGINX via repository Follow HTTP/3 configuration guide, roughly: server { # Enable HTTP/3 (QUIC) on UDP port 443 listen 443 ...
0 votes
Ignoring GET parameters in Varnish VCL
This is actually answered in the official Varnish manual: https://www.varnish-software.com/developers/tutorials/example-vcl-template/#7-removing-marketing-parameters-from-the-query-string The ...
0 votes
nGinx - DENY everything matching a pattern with one exception
I wanted to block access to all .yaml files except a specific /api/api.yaml file and solved it with a second location block: # TYPO3 - Block access to miscellaneous protected files location ~* ...
0 votes
Can't connect to any port aside from nginx ones
As it turned out: my own ISP is blocking some ports. I can access some ports (say 433,80,22,5228 etc), but not the others (for some reason 5454 is one of them)
0 votes
Logwatch configured for nginx with custom log format gives empty output
I am using the following in /etc/logwatch/scripts/services/http to override the detail level, given the default service script is only checking for this environment variable: #!/bin/bash export ...
2 votes
Accepted
How is nginx location selected when / is not defined
While Alexey Ten's comment correctly explains why location /i ends up handling the root request, it doesn't answer the main question: "How is nginx location selected when / is not defined?" ...
Top 50 recent answers are included
Related Tags
nginx × 17451reverse-proxy × 1661
php-fpm × 1351
ssl × 1249
ubuntu × 1060
php × 1042
rewrite × 940
linux × 857
apache-2.2 × 723
redirect × 631
proxy × 623
docker × 598
wordpress × 564
web-server × 561
https × 546
configuration × 490
cache × 454
http × 414
load-balancing × 396
django × 376
fastcgi × 357
centos × 355
proxypass × 333
ssl-certificate × 319
node.js × 316