Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [proxypass]

ProxyPass in Apache, and proxy_pass in nginx, are directives used to specify which backend or remote server should process the request

0
votes
0answers
5 views

How can I edit a cookie response from an upstream server to a client via an nginx proxy?

I have nginx listening on localhost set up to proxy requests to localhost:5000 to an upstream server. I want to edit cookie responses from the upstream server before nginx passes them to the client. I ...
-1
votes
1answer
21 views

Apache server - Unable to locate CSS and JS files

I want that when i hit URL A, it should serve content from URL B but the URL on the address bar should keep pointing to URL A only. URL A: http://apps.company.com/lab URL B: http://svrdev-73:6020 ...
0
votes
0answers
20 views
+50

Apache 502 Error With Upstream Proxy Raising 413

We have a Python Flask API running in gunicorn being fronted by apache. ProxyPreserveHost On <Location /api/v2> ProxyPass http://127.0.0.1:8090/ disablereuse=on SetEnv proxy-sendcl </...
0
votes
0answers
16 views

Apache mod_cache cache misses

Somehow I can't get Apache's mod-cache to work as I want. I want it to cache a proxy call to my tomcat server which is a jsp file. The jsp file displays the current time so I can notice if I get a ...
0
votes
1answer
31 views

Rewriting client “Host” http header before nginx validates the field

I get following request from a device and should proxy it to hd10.vtech.com: GET http://hd10.vtech.com/test/pp_firmware/HD10-CH010_SUOTA.bin HTTP/1.1 Host: http://hd10.vtech.com/test/...
0
votes
0answers
16 views

Intermediate Server connected to OpenVPN of external network

I've had the idea to use an intermediate Debian server on our internal network which connects to an external network over OpenVPN. The idea was that I didn't want to connect our computers directly ...
0
votes
1answer
26 views

Nginx avoid removing double trailing slash in path param when proxy pass

I have config in my nginx: location /image-optimizer/ { proxy_pass http://192.168.1.20:80/; } The problem is when nginx proxy passes it removes double trailing slash in path ...
0
votes
0answers
20 views

ProxyPassMatch matching for empty directory irrespective of regex

I am trying to use ProxyPassMatch to proxy my PHP files to PHP-FPM. My line looks like this. ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/html/$1 It is proxy-ing the PHP scripts ...
0
votes
1answer
35 views

nginx set directive not working

I'm facing the same issue as described in How to force nginx to resolve DNS (of a dynamic hostname) everytime when doing proxy_pass? and thus wanted to apply the same solution. My NginX, version 1.15....
0
votes
0answers
15 views

Is it possible to exclude a directory with ProxyPassReverse?

I'm looking to exclude a directory from a site is behind a reverse proxy. examples I'm seeing are using ! , but I haven't been able to solve this See examples that I've tried below. Legacy system ...
0
votes
0answers
11 views

ERR_NAME_NOT_RESOLVED when opening websocket through NGINX

I have a NGINX Docker container (frontend) linked with another one (api). api exposes a websocket API in port 8081, and frontend will consume it. In frontend, I have something like this: const ...
0
votes
0answers
38 views

Nginx, with multiple forwarded domains and a letsencrypt certificate

I'm trying to set up Nginx as a forwarding proxy for all the dev servers sat behind my static IP. Iv'e read this Question: Lets Encrypt with an nginx reverse proxy Already, and it get's me part of ...
0
votes
0answers
13 views

EC2 Ubuntu Apaches ProxyPass not working

Amazon EC2 instance System = Ubuntu Server = Apache Tools-Other = Expressionengine, Codeingiter All mods for ProxyPass are installed based on Digital Ocean Issue: ProxyPass doing a 301 ...
0
votes
0answers
48 views

Nginx proxy_pass to wordpress blog

I'm trying to serve a wordpress blog from another domain using proxy_pass. https://blog.domain.example/ to https://domain.example/blog I clearly also want to rewrite all the urls accordingly. What ...
0
votes
0answers
20 views

Trying to connect to wordpress subfolder behind apache proxypass but missing slash

The setup I want is along the lines of serverfault.com/blog which will proxy to backend server running wordpress. The problem I'm having is that say the page "test" maps to serverfault.com/blogtest ...
0
votes
0answers
88 views

nginx proxy_pass one file

I have a single file that I want to appear to host but that I don't. So I write this in my nginx server block: location /d-p27.js { proxy_pass https://data.example.com/p/piwik.js; } After ...
0
votes
0answers
48 views

Shorten URL with Nginx

I have this long URL with http://shortk8s.com/api/v1/namespaces/kube-system/services/http:kubernetes-dashboard:/proxy/#!/workload?namespace=default I'd like to http://shortk8s.com to go directly ...
0
votes
1answer
465 views

apache reverse proxy with SSL gives '400 bad request'

I have an Odoo instance running on port 9069 in an Ubuntu server. Right now, apache is listening on port 8069 and is proxypass-ing this to 9069 (which works fine). The working URL is http://example....
0
votes
1answer
34 views

How to handle session id from expressjs behind a apache2.4 webserver

I have a apache 2.4.29 with TLS activated to handle static files. Then i have a proxy configured to pass dynamic content to a NodeJS 10.5.0 with: ExpressJS 4.16.3 express-session 1.15.6 session-file-...
0
votes
1answer
158 views

Configuring multiple ProxyPassReverseCookiePath in Apache HTTP

I have a server with an Apache reverse proxy in front. The server machine contains 2 web applications running under: localhost:8000/app and exposed as my.url.com/app1 localhost:8001/app and exposed ...
0
votes
1answer
132 views

Apache: resources not loaded after a redirect with proxypass

Configuration: One virtual machine with Docked installed (10.10.10.68) One Docker container for myapp with apache installed (10.10.10.68:8080) A second docker container with superset installed (10....
0
votes
1answer
196 views

ProxyPass changes 304 status to 200 and adds content-type

The probelm I am running a node server (sqlpad) through an Apache2 reverse proxy. On some requests, the node server returns a 304 status code with no Content-Type when accessed directly. However, ...
0
votes
1answer
98 views

NGINX SSL Pass-thru and Docker

I have a server with 2 websites. Let's call them foo.com and bar.com. foo.com has a subdomain, called mail.foo.com. Both foo.com and bar.com are WordPress sites, and their NGINX configuration is the ...
0
votes
0answers
160 views

NGINX Dynamic Port proxy_pass

I need a way to proxy_pass a dynamic port through the location's URL. The proxy has the same IP but the port changes since the servers are created via docker on random port numbers. (Too many for me ...
0
votes
0answers
30 views

Nginx proxy_pass in special location doesn't work

I just try to make a specific location for my domain, with a proxy_pass: location /new/ { proxy_pass http://192.168.9.6:10061; proxy_set_header X-Real-IP $remote_addr; ...
0
votes
1answer
870 views

Docker Nginx reverse proxy configuration

Context: I'm fairly new to nginx, and figuring out how to incrementally make this work. I've worked around this problem for a while till now, where it's actually hindering development on one of my ...
0
votes
0answers
237 views

HAProxy + AWS Application Load Balancer

I have the following HAProxy config and when my clients come from an nginx proxy through the ALB (Application Load Balancer) then I can see their actual IP addresses (do not confuse ALB (Application), ...
0
votes
0answers
27 views

apache2 proxypass that works for both http and websockets

I have an apache2 virtual host that redirects traffic to another container. My config looks like this: ProxyPass / http://10.42.XX.XX/ ProxyPassReverse / http://10.42.XX.XX/ It works well, but does ...
0
votes
1answer
21 views

2 ProxyPass SSL wildcard on HTTPD2

So basically I am trying to setup 3 different SSL virtualhosts. I have the following setup beta.website.com api-beta.website.com app-beta.website.com beta is our old platform, api and app our part ...
1
vote
0answers
111 views

nginx proxy_pass on specific hostname only

Suggesting i have two hostnames : fr.xxx.com and de.xxx.com I want that all call to /api from the hostname de.xxx.com are proxied to yy.xxx.com I have tried this directive : if ($host ~ (^de....
1
vote
0answers
49 views

OSX Server Reverse Proxy, Preserve IP Address

I'm having trouble getting OSX Server's Apache service proxy to preserve the client's IP address when forwarding traffic to a Go-based server that I wrote. Since I have OSX Server's "Websites" ...
1
vote
2answers
161 views

Apache and Golang (or nodejs or springboot etc.) with SSLPROXYpass and HTTP2

my question is about "security" I suppose that this question is also for nodejs or springboot or whatever running on another port with apache as primary server Im trying some stuff with golang app ...
0
votes
1answer
33 views

Nginx, redirection on subfolder not working

I can make Nginx respond to www.example.com. But I'd like to redirect www.example.com/site0 to one specific server and www.example.com/site1 to another. It works When I point to the root location www....
0
votes
1answer
103 views

Can't login or doing any action when using proxy_pass with Nginx

In my previous question here nginx resolve (point) everything to different ip except specific file and subdirectory I asked about resolving my whitelabel website and it's pages to different ip but ...
1
vote
0answers
555 views

Using Apache to relay wss (web-socket) protocol to backend

I'm using Apache 2.4.27. I need to tunnel a client's wss request through an Apache reverse-proxy, to a backend server. However, from a tcpdump, it appears the wss request is being rejected by the ...
0
votes
1answer
168 views

Apache ProxyPass to TP-Link router

We sometimes need to access one or more of our routers from outside the office. Doing that from our website would be very handy. Our server runs Apache under Windows 2008 server. Since it serves a few ...
0
votes
1answer
72 views

nginx resolve (point) everything to different ip except specific file and subdirectory

So i have posted similar question on stackoverflow but i think this is more appropriate section for this. What i have now is one travel blog and on that blog i have whitelabel for tickets/booking. ...
0
votes
0answers
324 views

Proxy NGINX Traffic to different internal IP while keeping the URL

General Info: So I Setup a Proxmox VE to tinker around at home with Server Setups und possible Services I want to offer first of all Nextcloud for Friends and Family. From my ISP I have one static IP ...
0
votes
0answers
56 views

apache httpd as a reverse proxy - possible to send proxy protocol downstream?

I know I can install mod_proxy_protocol or mod_myfixip to get Apache to receive proxy protocol from something like haproxy. Is there any way to get apache to SEND proxy protocol when it is a reverse ...
0
votes
2answers
74 views

How do I merge these two nginx rules so that it works properly?

I was running Apache before using an htaccess rule but switched to nginx running a docker instance of the Discourse forum software. I am running nginx outside of the docker instance and then using ...
0
votes
1answer
63 views

Apache2 proxy preserve domain name

I'm trying to implement the scheme Browser Client -> Apache2 Proxy -> Tomcat Application Server. Apache2 and Tomcat on separate servers. But the proxy does not work as I expected. Apache2 virtual host ...
3
votes
1answer
115 views

Proxy websocket with parameters through proxypass/proxypassmatch without a VirtualHost

I have been trying for the longest time to proxy a websocket with it's sid variable to the localhost service, that is serving it. I have looked far and beyond for a solution (including a lot of the ...
0
votes
0answers
90 views

General approach to serve through uwsgi

This is not a precise question because it involves several things that I am not familiar with, but I can not find how to do this : I have a django website, and want to serve it on apache without ...
0
votes
1answer
46 views

httpd ProxyPass with sticky sessions and DNS RR

I'm using apache httpd with ProxyPass and DNS RR and sticky Java sessions for Tomcat. It's not working. My apache config is: ProxyPass "/" "balancer://mycluster/" stickysession=JSESSIONID|...
1
vote
1answer
524 views

Apache ProxyPass only one file to a different localhost port?

I haven't been able to find a solution to this exact problem: I have one app running on localhost:3000 I have a proxy set up for my localhost:3000 app with qa.mysite.com (for other js) I added a ...
0
votes
1answer
591 views

Apache ProxyPass to Tomcat - how to remove context path from URL?

I have Apache conf: <IfModule mod_ssl.c> <VirtualHost *:443> ServerName project.example.com ServerAlias ci ProxyRequests Off <Proxy *> Order deny,allow ...
0
votes
0answers
65 views

How can you use proxy_set_header Host $variable only when that variable is set?

I have an nginx location directive like the following: location ~ ^/some/stuff/(and|other|stuff) { proxy_pass https://external.proxy.i.dont.control.com; } I really need to change it to: location ~...
0
votes
0answers
234 views

Keep redirect URL after redirecting in destination server reverse proxy

I use Apache as reverse proxy for email web access. Proxy works fine when I connect to login page. I see url email-test.example.com. Unfortunately after login in email server is redirect back to email....
0
votes
0answers
178 views

Nginx Server shows my upstream server IP in address bar

I'm trying to get nginx server configured as a reverse proxy serving requests to few application servers upstream. Server { server_name app1.company.domain.com; listen 80; location / { ...
0
votes
0answers
316 views

NGINX proxy_pass returning 502 but the server is logging 200

I am attempting to add location /us/castle/knights to this nginx server and replace the existing server request at the same url. When I hit https://localhost/us/castle/knights I get a 502 but I can ...