Questions tagged [nginx-reverse-proxy]

When a reverse proxy proxies a request, it sends the request to a specified proxied server (http or other), fetches the response, and sends it back to the client, as if it came from the reverse proxy itself.

More information: https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/

2738 questions
0
votes
1 answer

NGINX does not serve images

NGINX does not serve my images (with extension .jpg or .png) but it serves any other file (e.g. .txt, no extenstion at all). This is the relevant part in my NGINX-Config: location /uploads/ { alias /var/www/uploads/; autoindex on; } When I…
Philip F.
  • 1,167
  • 1
  • 18
  • 33
0
votes
1 answer

(Nginx) Redirect to correct location when someone try to access to https://example.com:port

I recently installed and configured nginx as a reverse proxy server, but I have problem that I can't figured out how to solve it. Now I've configured three locations: /plex/ with proxy_pass htps : / 127.0.0.1:32400/ /tautulli/ with proxy_pass htps…
0
votes
1 answer

How to increase DDEV router gateway timeout?

I've got a poorly written PHP script, which takes several minutes to prepare the HTML output. I tried to run this script in DDEV, but always hit the Gateway Timeout. To avoid this, I want to increase the timeout value, used by DDEV router! But I did…
Armin
  • 15,582
  • 10
  • 47
  • 64
0
votes
0 answers

Custom NGINX config mapped to Nginx-Ingress

We have a cluster with 3 deployments (pod): demo 1 with PHP demo 2 with node.js ingress-nginx Demo 1 and Demo 2 have their own nginx.conf and demo1/demo2.conf Now we want to migrate everything to ingress nginx.conf. We have looked into various…
0
votes
0 answers

Nginx reverse proxy doesn't handle redirects itself

I have a Google Spreadsheet that I'd like to serve as a CSV file but hide that it's served or generated by Google. So I published my spreadsheet and got its public URL. Then I set up an nginx as a reverse proxy with this URL: server { location…
0
votes
0 answers

Nginx Location Block with name giving 404 not found error

i have 2 nginx container , which i have create via docker-compose file. following is my docker-compose file. version: '3.7' services: nginx1: image: nginx:latest hostname: nginx1 container_name: nginx1 restart: on-failure …
0
votes
1 answer

Regarding Nginx 1.22-stable source code building, how to enable all original include modules? especiallly for "ngx_http_log_module"

All, i downloaded the nginx-1.22.1.tar.gz from https://nginx.org/en/download.html, and was going to configure the http module of "ngx_http_log_module" for logging analysis purpose, but unfortunately, seems the module does NOT work as i expected. the…
Tony C
  • 11
  • 2
0
votes
3 answers

Django: CSRF verification failed. Request aborted. in production without domain name

I am running a Django app behind Nginx in a Docker environment. My problem is sort of the same from this thread: Django returning "CSRF verification failed. Request aborted. " behind Nginx proxy locally. Upon learning that I have to add…
Nikko
  • 1,410
  • 1
  • 22
  • 49
0
votes
0 answers

Spring Boot Handling of X-Forwarded-Host Header

I am working with a Spring Boot 3 service that uses spring-boot-starter-webflux. This service contains a simple endpoint: @RestController public class TestController { @GetMapping("/test") public String test() { return "test"; …
Mark
  • 4,970
  • 5
  • 42
  • 66
0
votes
0 answers

direct nginx to containers on another server

Hi sorry if this has be answered before. is it possible to direct nginx to another container on a different server inside the seam network. I currently have nginx handling the traffic that's pointed to the external IP from here it directs the…
Gladiator
  • 1
  • 1
0
votes
0 answers

Block URL with Nginx

I have a frontend application serving at port 8080. There is backend application online office, serving at port 9980. Now, I want to block download of files. So, application doesn't provide this feature out of the box. We decided to go with nginx to…
0
votes
0 answers

Matomo setup with nginx reverse proxy

I'm trying to setup Matomo analytics "on-Premise". My Website is based on Next.js and running with pm2 (Ubuntu 22.04). The web server is nginx and is being used as a reverse proxy. I suspect some nginx configuration is required. I tried following…
Mildly
  • 11
  • 2
0
votes
0 answers

Nginx Reversed Proxy for Django

I have my Django Server running on a virtual maschine. I got my own domain and want to access the server just with the domain via Nginx. I got to files in the sites-enabled folder. The problem is that if I try to connect to the Server I get a 403…
0
votes
1 answer

Nginx reverse proxy 504 timeout after running for a day

I have an nginx reverse proxy, proxying requests to a private load balancer in aws The proxy works as intended, until an amount of time has passed, then when trying to use the same endpoint, it times out, here is an example of my…
0
votes
1 answer

Nginx reverse proxy doesn't work properly

I wrote a page and it can be visited in sheyh.cn/multi/#/singleText. I tried to make a request to https://aip.baidubce.com/oauth/, It works properly in Vue devserver proxy and the config is like this devServer: { port: "8082", proxy: { …
Sheyh
  • 13
  • 1