Skip to main content

New answers tagged

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....
social's user avatar
  • 121
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....
Alexey Ten's user avatar
  • 9,297
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 ...
Danila Vershinin's user avatar
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 ...
sun's user avatar
  • 111
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 ~* ...
cweiske's user avatar
  • 812
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)
konart's user avatar
  • 101
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 ...
Ciprian Ciubotariu's user avatar
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?" ...
Ivan Shatsky's user avatar
  • 4,168

Top 50 recent answers are included