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

ProxyPass in , and proxy_pass in , are directives of the default module that are used to specify which or server should process the .


ProxyPass in :

https://httpd.apache.org/docs/current/mod/mod_proxy.html#proxypass


proxy_pass in :

http://nginx.org/r/proxy_pass

http://ngx.su/src/http/modules/ngx_http_proxy_module.c#ngx_http_proxy_pass

578 questions
1
vote
0 answers

How do I configure nginx to use redis instead of local disk with proxy_cache and proxy_cache_use_stale?

I'd like to set up a reverse proxy to a REST service that uses HTTPS. The proxy needs to store cached responses in redis (not on disk). If the REST service is down or times out, I want the proxy to serve stale data from redis. The suite of…
LexH
  • 111
  • 2
1
vote
1 answer

How to prevent other people from proxy_pass their own domains to my domain?

People can use Nginx to proxy_pass to my domain and on the browser, the contents are mines, but on address bar it's their domains. How to detect when the requests are thru' proxy_pass and deny those? For example, when I purposely proxy_pass to…
Dee
  • 125
  • 1
  • 6
0
votes
1 answer

Apache HTTP to HTTPS Proxy Redirect multiple addresses

I need your help. I have 2 versions of the application running on the Linux machine. Version1 runs on localhost port 5000, version2 runs on localhost port 5001. I need users to be able to access either of the application versions depending on the…
housemd
  • 15
  • 2
  • 4
0
votes
1 answer

NGINX stuck in endless redirect loop when trying to use auth_request

nginx version: 1.14.2 Im trying to use nginx auth_request to authenticate users for accessing a subdomain on which a page is served that i cant otherwise influence. I have a python + flask based login page which returns 200 if the user is logged in,…
laundmo
  • 101
  • 4
0
votes
0 answers

Redirecting in NGINX with masking target URL

I've set up redirection on NGINX with the help of this answer and now I want a setup it with masking redirection from user, i.e. keeping original example.com. Things I've tried: rewrite server{ server_name .example.com; rewrite ^/$…
Suncatcher
  • 594
  • 2
  • 7
  • 22
0
votes
1 answer

How to fix ProxyPass in URL and subfolder?

I made a proxy pass adding to my localhost instance the path /vocab/arch. Here the configuration I used: ProxyPass /vocab/arch http://localhost:3000/ ProxyPassReverse /vocab/arch…
Pelide
  • 101
0
votes
1 answer

Is it possible to use nginx stream to filter SSH connections?

I'm trying to setup a nginx egress proxy so that all the SSH connections to a specific group of hosts (*.example.com) go through the proxy. I have a local DNS server, where I resolve such hosts to the proxy ip address. I've looked at the nginx…
rcdsystems
  • 111
  • 4
0
votes
0 answers

apache2 Basic Proxy Pass not working

I am currently trying to set up a Vhost which links to a NodeJS App running on another port, however I can't make it work. The vhost enables without any problems and apache2 reloads/restarts without any problem. But when I want to access…
OfficialCRUGG
  • 55
  • 1
  • 4
0
votes
1 answer

XAMPP how to secure forward proxy for port 443

I need some help with securing my test XAMPP server on ports 80 and 443. I am running Apache 2.4.7 on Windows 7 machine. The setup is the following: I am redirecting all traffic coming on my server IP, port 80 and 443 to a java application running…
user3132858
  • 143
  • 2
  • 7
0
votes
1 answer

Is there a way in nginx to proxy any url?

I would like to have an api like this: my-proxy-server.com/http://example.com/foo.pdf that streams a response from http://example.com/foo.pdf. Note in this case http://example.com/foo.pdf is just an example, this could be any pdf url. So in…
0
votes
1 answer

Conditionally attach certificate to request in nginx reverse proxy, based on available header values

I have my webapp with Nginx reverse proxy in front acting as LB. The hosted webapp has two components. UI and API. UI is normally accessible, but API needs client certificates for authentication. Both are on the same hostname as they are part of…
dkrypt
  • 1
  • 1
0
votes
1 answer

NGINX - Redirecting works, proxy pass doesn't

So i'm trying to set up a reverse proxy and I've come across a weird error: When I redirect the user everything works fine, but when I use proxy_pass (like I need) I get a "502 Bad Gateway error". Code: server { #banca empresas HTTP …
0
votes
2 answers

nginx proxy_pass only works with complete filenames

I have an nginx which should proxy the path domain.de/pihole/* to a docker container running pihole. If I use the IP of the docker dontainer (172.20.0.2) the index.php is loaded, 172.20.0.2/admin and 172.20.0.2/admin/index.php work as well. If I use…
TNT2k
  • 101
  • 3
0
votes
1 answer

Cloudflare reverse proxy / proxy pass

Hopefully a simple question. Is it possible to use Cloudflare to proxy pass requests as you would in a normal reverse proxy webserver setup? We have a subdomain that we'd like to rewrite all requests to another subdomain (not redirect). We'd like…
0
votes
1 answer

nginx reverse proxy SSL

Goals: Have a single nginx reverse proxy for all sub-sites (running on other ports). BLOCK all direct connections, and instead; route through nginx. Problem(s): 502 gateway errors when trying to access https://www.example.com/site1/ (connect()…