skip to Main Content

nginx path based routing – Ubuntu

I would like to to route requests based on a path to two different Angular applications. So when i request http://example.com/admin is routes to one app http://example.com/client routes to the second app. I have the following config but all requests…

VIEW QUESTION

Nginx proxy pass not resolving

I'm new to Nginx and I'm trying to define locations to match certain patterns. I'm not sure if this is the correct approach, but this what I figured out so far. Requirements Location Proxy Pass /api/cars/carID?queryString https://myapi/api/cars/carID?queryString /api/cars/carID/model?queryString https://myapi/api/cars/carID/model?queryString /api/cars/carID/anythingElse?queryString…

VIEW QUESTION

Nginx geoip does not show the country in the logs – Docker

I am using a public repo for nginx configured for geolocation with geoip, but I am getting dashes in the fields $geoip2_data_country_code $geoip2_data_country_name'. I have the following Dockerfile: FROM alpine:3.11 COPY GeoLite2-Country.mmdb /usr/share/geoip/ # Install libmaxminddb and ngx_http_geoip2_module ENV MAXMIND_VERSION=1.2.1…

VIEW QUESTION

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/settings. I tried this, but when accessed locally, the request goes to /etc/nginx/html/api/local/settings,and not to the desired…

VIEW QUESTION
Back To Top
Search