Category "nginx"

nginx: [emerg] "if" directive is not allowed here in /etc/nginx/nginx.conf:64

So I am trying to block certain web browsers (not that you need to know) and everyone says to add if ($http_user_agent ~* (Chrome) ) { return 403; } I do all of

Running Omnibus Gitlab in Docker with Container Registry

I'm running gitlab on docker with a relative url my.domain.com/gitlab/. I have a nginx reverse proxy which passes the requests. Everything seems to be working f

nginx live streaming only audio not webcam

I have implemented the recommended steps as described in several sites (https://www.digitalocean.com/community/tutorials/how-to-set-up-a-video-streaming-server-

How to run sites in subdirectories with NGINX

My NGINX app looks like so: server { listen 80; server_name server_domain_or_IP; location / { include proxy_params; proxy_pass http

How to run sites in subdirectories with NGINX

My NGINX app looks like so: server { listen 80; server_name server_domain_or_IP; location / { include proxy_params; proxy_pass http

how to resolve nginx 502 bad-gateway error

I've containerized the next.js web application and hosted in aws ec-2. using nginx as proxy server this is the only working page / not working for any other p

Configure Nginx as Reverse Proxy for Nodejs App on Jelastic

I've tried using standard nginx and nodejs configurations following many documentation, but unlike other tutorials there are several files that don't appear in

Proxy server nginx config - 502 bad gateway error

I have a fastapi as backend and an html file as a frontend which are supposed to be running on docker. Here are my file structure: C:. | docker-compose.yaml |

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

Nginx Proxy_pass / redirect to fixed url

I created a simple react app to serve as an error page (might be a bit overkill). The idea is that we can easily customize the errors via query parameters or UR

Next.js rewrite with x headers

I have a web app where users can build their own profiles with their usernames like below. ourplatform.com/john ourplatform.com/john/about ourplatform.com/john/

Nginx: keep limiting the user for a duration

I'm limiting the requests based on CLIENT-KEY header. The problem is that I need to keep sending the 429 status code for one minute after the header is limited.

Where is the bug in docker-compose?

I run a simple project (docker-compose and nginx), but it don't work and I do not know why. I include the entire code of the project so as not to miss anything.

NGINX Setup to Match Proxy Middleware Configuration

I have the following setupProxy.js class that configures redirection for api calls to my server. const { createProxyMiddleware } = require("http-proxy-middlewar

nuxt-mail fails with a 504 with nginx reverse proxy

I configured nuxt-mail to send emails from our nuxt app. The baseURL of my app is changed to "https://localhost:3000/app" instead of "https://localhost:3000" So

Nginx index.html is override With Shared Volume

I have a Pod with an emptyDir volume mounted in two containers: nginx at /usr/share/nginx/html/ busybox at /var/html/ If i create a file with html extension ins

Gitlab Kubernetes Agent behind Nginx Reverse Proxy

Dear friendly developer, I am trying to register a Gitlab Kubernetes Agent inside a Minikube with a self hosted Gitlab instance. The Gitlab instance is a docker

Unable to reach service with ingress-nginx

I am really new to Kubernetes/minikube... I have to make service and hit "/first" and use ingress-nginx without ingress addon in minikube. Even though I have ad

Redirect subfolder to root with nginx

I’ve moved my wordpress site from example.com/mobile to example.com. For this work, I want: example.com/mobile not redirect. I want it not redirect becaus

Point a subfolder of domain to top level of another domain

I want to achieve that https://domainA.com/folder shows the content of https://domainB.com without redirecting the user to domainB. So it is important, that a u