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

Nginx Proxy Pass - Return Status code form upstream site

How do I return the HTTP STATUS CODE from the http://127.0.0.1:8080/ Example: http://127.0.0.1:8080/api/example returns a 500 then when accessing ttp://127.0.0.1/api/example it should also return ...
0
votes
0answers
5 views

Drupal / nginx redirect domain without changing URL with proxy_pass

We have a Drupal 8 website which runs about 18 languages, but only the Chinese one has a separate domain. We want this domain, which for testing purposes is testchinese.com to redirect in the ...
0
votes
1answer
13 views

nginx throws cannot get / bad gateway when trying to connect to proxypass path

I created a proxypass on my nginx server, and enabled ssl on it, but with and without ssl I still get an error saying 502 bad gateway. What can I fix to resolve this?(p.s. when I use curl on localhost ...
1
vote
1answer
16 views

Proxy_Cache on NGINX Reverse Proxy and FastCGI_Cache on Upstream NGINX Wordpress Server

I have some questions about caching implementation since most of the resources I have found don’t seem to distinguish between NGINX as a reverse proxy or as a “native” web host. I’ve setup a ...
1
vote
0answers
38 views

Using Environment variable in proxy_pass nginx

I have nginx container where I want to forward an api call to another server. I want to pass in environment variables from Docker Compose to be able to change sites, without rebuilding the Docker ...
0
votes
0answers
24 views

Can you conditionally handle proxy_redirect on NGINX?

I was having issues with requests like https://example.com/blog/blog-post being sent to upstream but then 404'ing at https://example.com/blog-post/. The issue was the upstream server (Wordpress) was ...
1
vote
1answer
51 views

NGINX proxy_pass setup fails when adding a location for expiring file types

When adding the following to my Nginx config server block, the /blog/ location starts 404'ing all file types referenced. What is the correct way to leverage the expires directive and continue to keep ...
0
votes
1answer
58 views

Apache destination virtual host certificate when using mod_rewrite or ProxyPass

I am trying to use mod_rewrite or ProxyPass to redirect (PT) the client's request from virtual host A on 443 to different virtual host B on port 4434, also with SSL. Like that: SSLProxyEngine on ...
0
votes
1answer
63 views

How to remove the path with an nginx proxy_pass in http and https?

I have read the similar issue below but got a problem that will explain later in the question: How to remove the path with an nginx proxy_pass I have a config like below that proxy_pass to an ...
0
votes
0answers
22 views

Nginx is not passing request to App server in case of => special character in URL

I have strange problem, I have special characters(=>) in URL which is more of business requirement(sorry, so I can't change it). Here is specific scenario- I'm using nginx as web server and proxy ...
0
votes
1answer
25 views

Apache proxy redirect URLs with specific string

I have a server which runs 2 applications. I am using a public IP address and I want to parse the url in a way if a specific text occurs the call is redirect to a specific port. In my case I want that ...
0
votes
1answer
58 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 ...
-1
votes
0answers
13 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
259 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
77 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
31 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
168 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
35 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 ...
1
vote
1answer
525 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
30 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
85 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
299 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
72 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 ...
2
votes
1answer
98 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
22 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
96 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
30 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
309 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
23 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
88 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
278 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
174 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
45 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 ...
1
vote
0answers
571 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
198 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
2k 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
41 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
609 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
268 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
344 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
204 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 ...
3
votes
0answers
409 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
117 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
2k 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
369 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
39 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
29 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
128 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
89 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" ...