skip to Main Content

Correct way to remove path from location in nginx with proxy pass

I currently have the following configuration to proxy requests off a single domain to multiple backends: server { listen 80; location /team/app1/location/region/ { proxy_pass https://this.is.the.backend.app.example/path1/healthcheck; } location /team/app2/location/region/ { proxy_pass https://this.is.the.backend.app.example/path2/healthcheck; } location /team/app3/location/region/ { proxy_pass https://this.is.the.backend.app.example/path3/healthcheck; } } The…

VIEW QUESTION

Docker nginx php-fpm not serving php

I'm trying to setup nginx and php-fpm images to work together for a Laravel application. This is my set up: docker-compose.yml version: "3.8" services: server: container_name: nginx build: context: . dockerfile: docker/nginx/Dockerfile volumes: - ./src/public:/var/www/html/public ports: - "8888:80" depends_on: -…

VIEW QUESTION

How to capture subdomain in nginx ingress

I want to capture subdomain and rewrite URL with /subdomain, For example bhautik.bhau.tk rewrite to bhau.tk/bhautik. I also https://github.com/google/re2/wiki/Syntax tried group syntax Here is my nginx ingress config: apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: subdomain namespace: subdomain annotations: kubernetes.io/ingress.class: nginx…

VIEW QUESTION

geoip_country_name returns "-" in nginx

I am trying to install geoip module for nginx though dockerfile by adding to my dockerfile the following: RUN apk add --no-cache libmaxminddb nginx-mod-http-geoip RUN cd /var/lib; mkdir -p nginx; wget -q -O- https://dl.miyuru.lk/geoip/maxmind/country/maxmind.dat.gz | gunzip -c > nginx/maxmind-country.dat; wget…

VIEW QUESTION
Back To Top
Search