Skip to main content

All Questions

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

nginx proxy cannot connect to upstream

I have 2 spring apps running on port 8080 and 8081. I wanted to have nginx proxy for forwarding https request for either of them so I have this nginx $cat /etc/nginx/conf.d/spring-apps.conf # Redirect ...
milanHrabos's user avatar
0 votes
1 answer
63 views

Apache config to proxy entire site with 1 exception

I have a website www.example.com on a hosting provider. We use that provider because it has a simple site builder my wife uses to maintain the site. Moving off of it isn't an option for this ...
John Oliver's user avatar
0 votes
0 answers
38 views

Split Nginx default conf into separate files based on different upstream services

Have a running Nginx auth proxy server with a growing default.conf.template file. Want to split it into multiple files based on different upstream services. ./templates/default.conf.template file: ...
Prem's user avatar
  • 101
0 votes
1 answer
162 views

Problems with Nginx location proxy pass

I am no expert in nginx, so sorry if any information is missing or not complete. I have a website running under http://server-ip:3000/abc/xyz. This website also loads some assets from http://server-ip:...
Felix Bühler's user avatar
0 votes
1 answer
257 views

NGINX proxy pass to Node.JS server SSL handshake failure

I want to setup a reverse proxy with NGINX to my express.js server, but when connecting to the website i receive a Cloudflare 525 SSL handshake failed error. This is my NGINX configuration file # ...
HelloWorld's user avatar
0 votes
0 answers
150 views

Apache2 folders redirect to IPs

I have installed Apache/2.4.56 (Debian), a noip URL and severals LXC containers. I need to access to the web apps inside the LXC containers: example.com/app1 -> LXC container 1 (with Zend2) example....
Lethal's user avatar
  • 1
0 votes
1 answer
182 views

Use ProxyPass only if remote address is in subnet

I have a php application running with a mostly default config that lives in var/www/html/app: <VirtualHost *:443> ServerName myhost.com DocumentRoot /var/www/html <Directory "...
GammaGames's user avatar
0 votes
1 answer
231 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
1 answer
303 views

Apache VirtualHost Same domain for Front and API

I have a multi-tenant application that is resolved using subdomains with the pattern *.localhost. The front-end of the application is accessible at http://localhost:3000/. To achieve the desired ...
Gogo's user avatar
  • 101
0 votes
1 answer
319 views

Apache module proxy_html not working

I have a Joomla 4 site running in a Ubuntu 22.04 server (hostname = web-02). The Internet facing web server running in a Ubuntu 20.04 server (hostname = web-01) has configured as a reverse proxy for ...
cpliu338's user avatar
  • 111
1 vote
0 answers
570 views

How can I proxy pass applications to locations different from "/" with Apache?

Let's say I have three applications on my server: node-red (1880), jupyter (8888) and pgadmin (5433)... I can successfully create a localhost proxy pass with them individually as the following: <...
raylight's user avatar
  • 111
0 votes
1 answer
449 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
217 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
-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
636 views

Apache2: How to Proxy the same url with different ports?

we have multiple different /apex instances. now we want to proxy the requests trough an Apache2-Server like this: request for instance1: http://proxy:8080/apex -> http://apex1:8080 request for ...
BrotCast's user avatar
1 vote
2 answers
20k 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
2k views

Apache proxypass css/js to their specific URLs

I have two of my backend sockets running at port 9000 and 9001. Both provide a WebUI with CSS,JS and PHP. But both are different websites and when I use proxypass for both sites, how can I load css,js ...
geeky_boi's user avatar
2 votes
1 answer
634 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
1 vote
1 answer
2k views

Apache ProxyPass to Shared Ip Address for Domain

I have a case where I need to proxy pass a domain (domain1.com) to a different domain (domain2.com) hosted on a shared ip address (192.168.168.168), but domain2.com DNS is pointed other than the ...
user2341534's user avatar
1 vote
1 answer
1k 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 votes
1 answer
2k views

Using Apache proxy pass not forwards with port

I have some websites on my server and few of them have proxy pass and they are passing some port to some subdomain. But now I'm trying to add another subdomain for Webmin, but it doesn't forward to ...
Reza Azimi's user avatar
0 votes
1 answer
967 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
2k 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
1 answer
820 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
1 answer
922 views

Apache - ProxyPassReverse multiple entries with same host

we have apache load balancing configuration like so: <Proxy balancer://acluster> BalancerMember ajp://10.10.10.1:8123 route=r1 BalancerMember ajp://10.10.10.2:8123 route=r2 </Proxy> ...
Michal's user avatar
  • 3
0 votes
2 answers
7k 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
  • 11
0 votes
0 answers
966 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
0 answers
2k views

Nginx reverse proxy same listen port to multiple unique location ports

I've been trying to find a solution whereby I am listening to port 443 externally and want to pass the results to two unique internal ports (80/90). I've researched a number of options but they all ...
Mark Cichy's user avatar
0 votes
1 answer
877 views

NGINX proxy_pass serving index instead of requested java-script file with status 200

I have set up a proxy_pass looking like this: location /review/app-template/16-update-to-proxy_pass/ { proxy_pass http://$server_name:54341/review/app-template/16-update-to-proxy_pass/; ...
Felix B.'s user avatar
  • 105
0 votes
1 answer
30 views

Ensuring Redirects on a Proxied Server work correctly

So I am currently trying to understand what configuration is a good idea for an nginx proxy. I am a bit stuck on the following two options: proxy_set_header Host $host; proxy_redirect default; (which ...
Felix B.'s user avatar
  • 105
1 vote
0 answers
176 views

Apache reverse proxy configuration (/context to /)

I'm having this issue trying to proxy a site to another context on a different domain What I currently have ? I have a fully functional web site running on the following URL: https://helloworld....
William Añez's user avatar
0 votes
0 answers
2k views

NGINX UDP Proxy Pass to HTTP

I built a NGINX reverse proxy where I listen for UDP traffic on port 53 and pass it on to an HTTP endpoint with modified headers. Once the headers are modified, I send the packet to the target. http....
Brundlfly's user avatar
1 vote
1 answer
671 views

Apache SSL Proxy Pass not working, but it does with VirtualBox NAT port forwarding

I configurated Apache proxy pass on port 80 and 443. Port 80 works but it seems that for 443 I do not get any response. From my public ip I got no response from server. This are the virtual host ...
fared's user avatar
  • 11
1 vote
0 answers
654 views

how to config apache reverse proxy for multiple jboss remote instances?

I need to setup an apache reverse proxy with multiple jboss instances as target server (with different IP). I've already set in my DNS an url http://jboss-test.domain.com and i would like to redirect ...
Beps's user avatar
  • 11
0 votes
1 answer
87 views

Reverse proxy blog.example.com to example.com/blog using Apache

EDIT - Added Vhosts config for the target subdomain. I am trying to reverse proxy blog.subdomain.com to tld.com/blog. The current config I have right now redirects to the subdomain rather than render ...
Sahil's user avatar
  • 133
0 votes
1 answer
881 views

How to point static folder in Nginx for a Django application

I have deployed a simple Django application in the AWS server and created a config file in the Nginx as follows. But its static files are not detecting. Location of my static folder location: /path/...
aks's user avatar
  • 57
0 votes
1 answer
2k views

Nginx proxy_pass domain to sub directory

I have a multi tenancy application that runs on port 3000, this app will dinamically load and generate contents for variuos websites ex. localhost:3000/webiste1.com/home , localhost:3000/webiste2.com/...
Nico's user avatar
  • 101
0 votes
1 answer
5k views

How to write nginx proxy pass for the Django application

I have deployed a simple Django application in the AWS server and created a config file in the Nginx as follows. server { listen 80; ...
aks's user avatar
  • 57
0 votes
0 answers
472 views

Nginx conditional proxy pass configuration

I have 2 different ( Node & Angular ) applications running under a domain. I am trying to configure nginx in way to serve like, whenever anyone access "domain.com" it should serve the ...
Chris's user avatar
  • 1
1 vote
2 answers
212 views

Apache modsec + ssl proxy loop

I have a server where we have the following setup: http://example.com -(REDIRECT)-> https://example.com Now we would like to add a simple ssl proxy(on the same machine where the A record is also ...
Appelpitje's user avatar
0 votes
1 answer
709 views

Apache ProxyPass doesn't seem to be proxying content from remote host

I am trying to create a proxy at a URL on my "master" site to a remote site, "east", but I get stuck in a redirection loop. This isn't the behaviour I was expecting - I understood ...
Tim 's user avatar
  • 231
0 votes
1 answer
29 views

Making the same website accessible from the subdirectory

I want my same website to accessible from a subdirectory. For example, right now my website is https://example.com What I want is, that it should also be reachable using: https://example.com/hi That ...
Amanda's user avatar
  • 145
0 votes
0 answers
449 views

Nginx proxy_pass works for sub-paths but not for root path

I have Nginx running on Ubuntu20 with a proxy_pass from https://example.com to 0.0.0.0:8000 which is a docker container. When I hit https://example.com/literally/any/path/at/all the proxy works as ...
anonymous_potato's user avatar
0 votes
2 answers
540 views

Apache crash if I try to use ProxyPass on localhost to expose different services as subdomain

I have the following directory structure for multiple websites and services /var/www/html/site1 /var/www/html/site2 /var/www/html/site3 /var/www/html/serv1 /var/www/html/serv2 site1 folder hosts a ...
AndreaF's user avatar
  • 225
6 votes
1 answer
13k views

Unexpected 301 redirects from Nginx when behind Nginx reverse proxy

Similar questions have been asked before here and here but none of them matched or solved the issue I am having. After a few hours of desperate problem solving I found a solution that was so ...
Akseli Palén's user avatar
4 votes
0 answers
3k views

Proxy_pass vs Fastcgi_pass

With one server/container on with nginx and another one with fpm, is it better to fastcgi_pass from the nginx to the fpm or proxy_pass to the fpm with addional installtion of nginx on the fpm? Both ...
littlePigletWings's user avatar
3 votes
1 answer
12k views

Appending the query params the right way when using proxy_pass with nginx

I have my nginx proxy pass config setup as follows: location /try-me { proxy_pass https://some-domain.com?id=true&zone=false } This works fine. But the problem is when someone from the ...
Amanda's user avatar
  • 145
0 votes
1 answer
3k views

Apache Conditional Reverse Proxy with RewriteCond

I have a website that has a mobile version page, and since my website is behind the reverse proxy, I need a conditional function that can decide which version to be shown to visitors. I'm using Apache ...
Zia's user avatar
  • 3