All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
45 views

(Nginx proxy) Replace host in response in headers and body

It's possible in nginx to replace "Host" header in request. server_name myexample.com; location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; ...
Semyon Bayandin's user avatar
1 vote
1 answer
61 views

Target app assets not loaded with nginx proxy_pass

I have a basic nginx proxy running on http://127.0.0.1:8080. This is the nginx.conf: events {} http { server { listen 8080; server_name 127.0.0.1; rewrite_log on; ...
Asmaa's user avatar
  • 31
1 vote
1 answer
141 views

Serve multiple apps with nginx proxy_pass

I'm trying to use a basic nginx reverse proxy to access three different apps, each running inside a docker container. The nginx reverse proxy is served on http://127.0.0.1:8080 and i want to have the ...
Asmaa's user avatar
  • 31
0 votes
0 answers
36 views

Mask Url from path to subdomain using NGINX

I want to achieve url rewrite as such: https://documentation.domain.com/login to https://app.domain.com/login https://api.domain.com/login to https://app.domain.com/login , any sudomain with url {...
Jason The Dynamite's user avatar
0 votes
0 answers
96 views

NGINX Rewrite path to subdomain with cloudflare results in Too many redirects

I want to achieve url rewrite as such: https://documentation.domain.com/login to https://app.domain.com/login https://api.domain.com/login to https://app.domain.com/login , any sudomain with url {...
Jason The Dynamite's user avatar
0 votes
1 answer
65 views

nginx GET request with internal server name instead of public domain name

I have set up a nginx reverse proxy with Ubuntu Server 22.04 LTS. The Abacus web application should be accessible with https://abacus.contoso.com from the internet. The internal server name is srv06. ...
Fabmic96's user avatar
0 votes
0 answers
446 views

502 Bad Gateway when using NginX proxy_pass for subdomain on different LAN server

In a nutshell, I want to host a second domain (sub.domain.com) on a different server, on the same network (192.168.1.240). I understand I have to make use of the proxy_pass, so I have this ...
Johnny Bravo's user avatar
0 votes
0 answers
232 views

Serving a wordpress site in a subfolder proxied on different server

I have a landing page and a wordpress site in a subfolder example.com -> landing page example.com/blog -> wordpress I want to serve the wordpress site on a different server. I created a server( ...
Mstf777's user avatar
0 votes
1 answer
480 views

How to reverse proxy assets from another unsecured website?

I have this situation. Current VM where this nginx config is stored has a valid ssl certificate. Inside this VM is the main application app1 served in port 80. On another port 1234 another service is ...
llesh's user avatar
  • 1
0 votes
0 answers
69 views

mDNS (unknown device IP), Ningx, with restAPI backend url redirect without changing the url in the browser window

Setup Have a set of device(s) that will be placed on various networks with various IP designations. The device does backend stuff and provides 2 "services" to the user: a create react app ...
Biaspoint's user avatar
  • 101
0 votes
0 answers
203 views

Nginx - redirect subdirectory to a different domain without changing URL

We've set up a Matrix-Synapse chat server at the root of one domain, and we'd like to redirect the /element subdirectory to the Element client hosted at another domain, but without changing the ...
Charles Johnson's user avatar
0 votes
1 answer
302 views

How to remove trailing slash in nginx's passproxy?

I would like to access it as follows using nginx proxy pass. proxy.com/api/ -> proxy.com/api (connected site is example.com) proxy.com/api -> proxy.com/api (connected site is example.com) The ...
Joker's user avatar
  • 1
0 votes
1 answer
91 views

Is there a way in Nginx to remove a route specified in location from one domain and port and forward it to reverses proxy?

I want to connect example.com:80 and example.com:82 to a specific site through reverse proxy. localhost/api/buy/ -> http://example.com:80/ localhost/api/sell/ -> http://example.com:82/ I set ...
john_smith's user avatar
0 votes
1 answer
477 views

How do I do multiple nginx reverse proxies?

I want to connect example.com/api/buy and example.com/api/sell to a specific site through reverse proxy. So I am trying to connect through localhost/api/buy and localhost/api/sell with nginx. I set up ...
john_smith's user avatar
0 votes
1 answer
174 views

nginx location proxy pass to another port path

I have two docker containers running for react (http://localhost:90) and nextjs (my-next-app.com / http://localhost:85) applications, and I have Nginx configuration similar to the following server ...
Githendra McShane's user avatar
2 votes
1 answer
2k views

Proxy pass on subdirectory not working

I have an api running at http://127.0.0.1:9650. For example the following is giving a json object as response: curl http://127.0.0.1:9650/ext/health I would like to make the following work at https://...
xfscrypt's user avatar
  • 123
0 votes
0 answers
615 views

NGINX proxy_pass Keep-Alive without upstream directives

I have an nginx configured to dynamically proxy to another network, say ourdomain.com/legacy/otherdomain/443/examplepath?examplearg=examplevalue will be mapped to otherdomain.legacydomain.com:443/...
DoktorMerlin's user avatar
0 votes
0 answers
4k views

Nginx Proxy Pass Not Working

Firstly, deployed my node application on port 8080. It is working successfully. Then I installed nginx. Here is my example.com file inside /etc/nginx/sites-enabled folder. My Node application work on ...
Ömer Faruk Demirel's user avatar
0 votes
0 answers
270 views

nginx proxy_pass to other server to index.html

I have two node with corresponding domain names: server1.test.mydovps.net server2.test.mydovps.net. I want to proxy_pass with upstream from server1.test.mydovps.net to server2.test.mydovps.net and see ...
Relyativist's user avatar
-1 votes
1 answer
1k views

Keep url in address bar with a proxy reverse on nginx

I have a web application where users can create their page. The web application will generate a URL like this for each page created : https://my-domain.com/page/12345. I would like to give my users ...
fraxool's user avatar
  • 99
0 votes
1 answer
2k views

Nginx proxy_pass to remote file

I have an nginx server where I'd like to point any route that begins with /app to a specific file. It's a single page app, so even /app/some/long/route should just return the same index.html file. ...
Abe Fehr's user avatar
  • 101
1 vote
2 answers
15k views

Authorization Header Missing Upon NGINX Proxy Pass to subdomain

Hi I'm running Laravel on NGINX server and I would like to use NGINX reverse proxy capability as an API gateway for my Laravel and other node API application. Here are my configurations: Application ...
Kevin Yobeth's user avatar
0 votes
0 answers
11 views

Does proxypass put a toll on network traffic for streamable sources?

First of all I have never tried it and it may not be possible, but I do imagine a case when things like AWS S3 services offers files on their "buckets", and some part of security procedure ...
Bartłomiej Sobieszek's user avatar
0 votes
1 answer
496 views

NGINX environment-based routing

I have a single application running in multiple K8s clusters; Let's say there is a frontend service, and two backend ones. I use NGINX proxy the requests from the frontend to the backend services. ...
Abraham's user avatar
  • 11
0 votes
1 answer
923 views

Configuring NGINX with proxy_pass set up on a subdirectory pointing to a docker server, and ensuring relative URLs (.js, .css) resolve

I have nginx 1.14.0 running on Ubuntu 18.04 server. On that server, I'm attempting to self-host many different applications. My goal is to have each location exist at a subdirectory of my url, server....
Caleb Jay's user avatar
  • 121
1 vote
0 answers
2k views

Nginx proxy_pass root to external landing page

For a new domain x.co I am setting up, I want the root (x.co) to show an external landing page without changing the url to that of the external landing page. This landing page has been created on ...
ahron's user avatar
  • 365
0 votes
1 answer
347 views

Nginx mirroring without "main" proxy_pass

I have a case where I would like nginx to proxy_pass queries to a backend and mirror it to one or more site. That is quite straight forward with a config like server { server_name mydomain.tld;...
jyte's user avatar
  • 1
0 votes
1 answer
3k views

Nginx redirects to http://localhost

Brief image of the situation I can't use domain address for server_name because I can't control DNS server. I must use public IP to connect to my web server. So I set server_name to _;, but when I ...
Lunartist's user avatar
  • 125
0 votes
0 answers
647 views

Bad nginx URI redirection

I am trying to authenticate in a keycloak server however the redirect_uri doesnt come with the context (/admin/). Nginx is producing a wrong URI redirect_uri: hxxps://***.pt/auth/realms/example/...
Winter's user avatar
  • 131
2 votes
1 answer
518 views

Sending selective args from Nginx proxy to the upstreams through proxy_pass

I have a Nginx proxy configured for a Minio S3 object storage server. Can I remove some of the query params (more than one agrs) when I'm passing a request to the upstream (Minio) and keep the rest of ...
Mehdi Hamidi's user avatar
0 votes
0 answers
248 views

nginx proxypass not working for embedded links

I've an EC2 machine which is behind a ALB. Listener rules in the ALB are like IF Path is/blog* Host is abc.example.com THEN Forward to target-group-1 My nginx config looks like this: ## # Default ...
Axel's user avatar
  • 471
0 votes
0 answers
751 views

Cloudflare in front of Nginx Reverse - redirect users with certain IP to special page

I'm running a nginx reverse proxy in front of webpage. In front of this nginx reverse proxy is also cloudflare reverse proxy running. Now I'm trying to redirect users with certain ip-addresses to a ...
micebutt's user avatar
4 votes
1 answer
6k views

Cockpit via NGINX - settings make other services not reachable

I have a server (Ubuntu-Server) with some Docker-based servers (Gitlab, Redmine) and NGINX as Proxy. gitlab.<myserver> => NGINX -> <docker-net-ip>:port => Gitlab-container ...
Alex44's user avatar
  • 181
0 votes
0 answers
11k views

nginx always serves 502 Bad Gateway

I am trying to run a proxy with Nginx and I implemented the following tutorial as preparation. I did exactly as instructed here and I was served a 502 Bad Gateway result when I entered http://develop....
Mnemosyne's user avatar
  • 131
1 vote
1 answer
967 views

Grafana does not send notifications through reverse proxy

I am using Grafana on a server that does not have Internet, I need to send Telegram notifications, for that I am using Nginx server in another machine. Server A: Grafana installed / Running on port ...
aldegalan's user avatar
1 vote
1 answer
385 views

Grant access to the Internet only for certain requests from Grafana with reverse proxy

I have two machines: Machine A: Grafana installed / No access to the Internet / Need to send notifications to Telegram Machine B Nginx installed / Access to the Internet I would like to send those ...
aldegalan's user avatar
0 votes
1 answer
415 views

Nginx robot proxy_pass to another port with change url

I Have a problem with nginx configuration. If user agent is "robot" - then proxy pass to another port with setting corrent uri as argument for example : have two services localhost:5000 and ...
Ivan Korneev's user avatar
0 votes
1 answer
789 views

Nginx L4 Proxy Works with HTTPS but not with HTTP

I have the following configuration as L4 proxy over Nginx and everything works fine. stream { map $ssl_preread_server_name $name { hostnames; .ipchicken.com $...
Zareh Kasparian's user avatar
0 votes
0 answers
1k views

Proxy all requests to backend server

I currently have an Angular app that gets its data from a Symfony backend. When developing, I used the ng serve development server proxy system for redirecting the /api, /oauth-token and /media routes ...
BSoD's user avatar
  • 1
0 votes
1 answer
1k views

Redirect to external asset nginx

My goal is to have one nginx that can proxy_pass to other server. Desired input https://example.com/https://assets1.com/image.jpg?utm=whatever Desired output https://assets1.com/image.jpg?utm=...
Imnl's user avatar
  • 103
1 vote
0 answers
1k views

NGINX proxy_pass without changing URL

My Goal My goal is to redirect to a different web page without changing the URL in the address bar. So for example I want to redirect from https://my.site.com/path to https://external.com/other, but ...
Andy Sukowski-Bang's user avatar
0 votes
0 answers
63 views

Proxying to a proxy with nginx

I'm trying to use the proxy_pass directive to proxy requests to different servers. In the following conf, /api1 and api2 are proxied correctly but api3 is not. The server api3.server3.com runs an ...
Askirkela's user avatar
  • 131
2 votes
1 answer
2k views

How to Make NGINX to use System Proxy?

I am trying to setup a nginx server that forwards the incoming request to a corporate porxy (its a mcafee proxy) with a proxy header Host and the actual destination host something like ...
V Shunmugam's user avatar
0 votes
1 answer
1k views

Nginx Proxy pass returns 50x error [duplicate]

How can I use or configure proxy_pass in NGINX in order to display my react application when someone visits my website? Below you can read the configuration I am using, but it is not working as I ...
user795730's user avatar
0 votes
1 answer
36 views

Nginx rewrites correctly for one but not the other

Basically, I am trying to use the proxy_pass directive to call a remote API. So far, this is what I got: server { location /a { proxy_pass https://a.com; rewrite ^/a(.*)$ $1 break; # no ...
Askirkela's user avatar
  • 131
0 votes
0 answers
207 views

Change Nginx proxy pass public path

I have a Python/Django API with a unique endpoint /videos running on my Debian server. The Nginx vhost looks like this: server { server_name example.com; location / { # Pass to ...
bolino's user avatar
  • 275
0 votes
1 answer
723 views

how to allow proxy pass with same location, with multiple context path

server { listen 80; server_name example.com www.example.com; location /consol { if ($request_method !~ ^(GET|POST)$) { return 405 "Not allowed"; } ...
deepak's user avatar
  • 1
0 votes
2 answers
5k views

nginx reverse proxy - proxy_pass leads to 503 service unavailable

I have the following configuration: server { listen: 8080; location / { proxy_pass https://somehost.abc.xyz; proxy_redirect off; proxy_set_header ...
kevin's user avatar
  • 13
0 votes
0 answers
836 views

Nginx proxy pass Server runs in port 4443 with lets encrypt ssl

I am trying to proxy java application runs on port 4443 using nginx. My nginx server block is like below: map $http_upgrade $connection_upgrade { default upgrade; '' close; } upstream ...
Madushan Perera's user avatar
1 vote
1 answer
348 views

Apache ProxyPass adding Port only on base URL

This is getting frustrating to say the least haha. I have setup a proxypass and proxypassreverse in apache under virtual host 443 to proxy to nginx running in a container on port 8443. This is all I ...
VIDesignz's user avatar
  • 113

1
2 3 4 5
7