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
1answer
49 views

Proxy pass in http.conf apache not forwarding

I'm currently trying to forward this url https://example.com/screenshot to http://localhost:8443 the reason why I'm trying to do this is because I have an express js server running that I need to be ...
0
votes
0answers
9 views

Apache proxy pass (Raspberry) behind Nginx proxypass (VPS)

I have a Raspberry No. 1 running Apache, listenting at https://home.example.com/userA This apache provides simple html files and adds virtual locations as proxypasses to my IPCameras, some of which ...
0
votes
1answer
26 views

Nginx proxy cookies not set

Here's my situation, I have a Rails 4 app that can be accessed by multiple domains, depending on the domain, the content changes. Say the main domain is domain1 and all the other domains just use ...
0
votes
0answers
30 views

Cant get NGINX to proxy pass origin IP address

I'm trying to get an NGINX server for a client to forward Geo-IP requests from an https: site to an http: site using proxy-pass. This site is https The GeoIP site is http, so javascript on my client'...
0
votes
1answer
22 views

ReverseProxy Wildcard?

Is it possible to have a wildcard for a reverse Proxy using ProxyPass? I've seen similar config below for ProxypassMatch, so I tried to model it off of that using just proxypass ProxyPass ^/...
1
vote
1answer
42 views

Nginx variable in proxy pass does not work

Can proxy_pass work with variables? I am trying to make the below configuration work: http { ... map $http_user_agent $myvariable { default 'mobile'; } ...
0
votes
0answers
29 views

Is nginx proxy cache static file?

If i use nginx proxy to surf static file from http://targetdomain.com/file.mp4 through http://example.com/file.mp4 , How nginx proxy handel the stream? Does it download it all and then pass to the ...
0
votes
1answer
99 views

How to handle relative urls correctly with a nginx reverse proxy

Sure I'm not the first one that tried to serve a domain example.com from a example.net/bbb, but I haven't found a solution yet. My NGINX configuration follows the guidelines and looks something like ...
0
votes
0answers
28 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
55 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
1answer
106 views

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
23 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
57 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
18 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
50 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
26 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
180 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
20 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
42 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
56 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
14 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
117 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
30 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
278 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
123 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 ...
1
vote
2answers
986 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
38 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
395 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
193 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
279 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
163 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 ...
1
vote
0answers
287 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
54 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; ...
1
vote
1answer
1k 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
323 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
33 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
24 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
125 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
74 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
208 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
35 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
111 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
676 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
228 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
91 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
466 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
63 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
78 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
75 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
161 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 ...