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 proxy_pass part of url and params

I need to proxy request From my server to another Two options should be realized First: From https://my-site.com/subjects/custom_id to https://another-site.com/subjects/custom_id Example: https://my-site.com/subjects/1 to…
0
votes
1 answer

When I was reloading my React application it's not loading and throwing 404 error

Initially, we conducted extensive research and experimentation using open source solutions to address the issue. Take a example domain, "https://example.com," was working seamlessly on our hosted server with nginx. However, when attempting to access…
0
votes
0 answers

nginx limit req befor rediect not working

how i reidrect when not over limit but this code rediect every time when i refresh limit_req_zone $binary_remote_addr zone=limit_rate:10m rate=2r/m; limit_req_status 429; `server { listen 8082; server_name dogs-backend-test.com; location / { …
0
votes
0 answers

Running a function in background after every Xs interval in openresty

I'm working on a usecase, where I need to populate cache by running a background function(to avoid latency induced by having the function run while handling the request). The function will make an API call to get the data and this data has to be…
Ashay Fernandes
  • 353
  • 4
  • 14
0
votes
0 answers

Domain problem with Keycloak login for an app | NGINX

I’m a data analyst and develop web applications for my company on its network by using R programming language and R Shiny. I have an ubuntu machine and I deployed my apps on ShinyProxy (https://www.shinyproxy.io/) which helps to deploy your R shiny…
0
votes
0 answers

Windows Nginx i can't change the root

I am new to Nginx i started a crash course and i am following the steps but i am stuck at this part and i couldn't find any resources to help me. http { server { listen 8080; root C:\Users\Test\Desktop\test; } } events…
Castiel
  • 11
  • 7
0
votes
0 answers

Struggling to get nginx to proxy_pass to postgresql: No route to host

I'm struggling to find which part of the process is causing the issue. > psql -h my.domain -p 9579 -U postgres psql: error: connection to server at "my.domain" (my.ip), port 9579 failed: No route to host Is the server running on that host…
Shanny
  • 33
  • 4
0
votes
0 answers

how to config nginx domain.com/api to /var/www/html

i have apps on dir /var/www/html/app, with domain example.com how i can reverse example.com/api to /var/www/html/api. this is my nginx config `location / { root /var/www/html/app; index index.html index.htm index.php; …
0
votes
1 answer

Spring boot application on Elastic beanstalk Upload Large files, nginx error

I'm writing to you in hope to get a help on a problem I'm facing, so basically I created a spring boot rest API for my app and I used AWS Elasticbeanstalk to deploy, now when I try to upload a file to my S3 bucket using the rest API, I'm facing an…
0
votes
0 answers

Nginx - failed (111: Connection refused) while connecting to upstream

Im working in local. I have 2 containers in docker: I have two nginx images. One with this .conf: an another: When i run the reverse_proxy to redirect to the other container, i recive:
0
votes
0 answers

Nginx Proxy Manager returns 403 on host without subdomain

I am able to set up a working proxy host with the "www.example.com" domain. However, if setting up a proxy host just with "example.com", the request fails with 403 Forbidden. The request is not reaching the backend server, nor did I find anything in…
DanBrezeanu
  • 523
  • 3
  • 13
0
votes
0 answers

How can I match a location in a specific format in nginx?

I'm trying to match a location that looks like this /v1/images/{path1}/fetch?imageUrl={imageUrl}, but I get this error in the terminal [error] 7#7: *1 open() "/usr/local/openresty/nginx/html/v1/images/raw/fetch" whenever I try to make an example…
Esam Olwan
  • 320
  • 1
  • 5
  • 16
0
votes
0 answers

How to deploy multiple NextJS app in Amazon EC2 instance in multiple port?

So basically what I want to ask is, I have 2 nextjs app and I want to serve one app in port 4000 like when I type ip-address:4000 it should open myapp1 and another app in ip-address:5000 in an AWS EC2 instance. I have tried creating a custom server…
0
votes
0 answers

Nginx location directive doesn't seem to be working in my system

I am using fedora 37 and trying to create proxy server for my application. I am using Nginx for this. but directive not working i think. Here's my nginx.conf file user nginx; worker_processes auto; error_log /var/log/nginx/error.log notice; pid…
Tanuj Sharma
  • 77
  • 1
  • 1
  • 10
0
votes
0 answers

How use nginx to change the DSN in the payload query string parameter?

I need to change the dsn in the request payload query string parameter with nginx. I have to use another dsn to replace the old one if the dsn is matched with a specific dsn. but it is not work, I have very few experience on nginx, therefore I need…
devlooper
  • 11
  • 1