Category "nginx-location"

How to configure webhook in nginx?

I am trying to configure the nginx.conf file to receive webhook requests from an external website. The request gets failed with status code 405 (not allowed) wh

SignalR without authentication

I'm using Nginx as a reverse proxy for my services. I use the following config: location = /order-service/hubs { proxy_pass http://order-service/hubs; p

Nginx deny if location contains

How can I deny access to nginx if the path contains /local or /local-int to all networks except the local one? For example https://example.com/api/local/setting

How can I make this nested location configuration use the correct path to call a php program?

I have setup nginx to allow users to have a user website (https://example.org/username maps to /home/username/www). I want to allow my users to use php. Php is

Not able to see URL without trailing slash in NGINX

I know that this is a common issue in NGINX and there are many threads about that. Issue: When accessing the URL http://localhost/var without trailing slash is