Questions tagged [reverse-proxy]

A reverse proxy is a type of proxy server that fetches resources from a specific defined set of servers for a client. It is used in cases when there is an advantage to not exposing the web server with the content directly whether it be for security reasons or because of a lack of available public IP addresses.

A reverse proxy is a type of server. Unlike a traditional "forward proxy" server, a reverse proxy fetches resources from a specific defined set of servers for a client. The Apache HTTPD server's mod_proxy module is a popular example of software that can be used as a reverse proxy.

A reverse proxy can be used in cases when there is an advantage to not exposing the server with the content directly to the Internet, whether it be for security reasons or because of a lack of available public IP addresses.

3190 questions
4
votes
2 answers

nginx listen on specific interface

I'm running a Nginx as a proxy server, forwarding to 10.12.96.4. I would like the NGINX server to listen on ens3:, and forward requests through `tun0 Here is my /etc/nginx/sites-available/default: server { listen 149.28.239.231:80; …
Ian Arman
  • 123
  • 3
  • 8
  • 15
4
votes
1 answer

Inject cookie with Nginx reverse proxy

With Nginx as a reverse proxy I'd like to inject a cookie for backend systems to consume. location /delegate { proxy_pass ; proxy_set_header Host $host; proxy_set_header X-Forwarded-For …
Marcel Stör
  • 191
  • 1
  • 2
  • 8
4
votes
4 answers

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.com:8069 Now, I need to make this work with SSL on…
Kishor N
  • 53
  • 1
  • 1
  • 5
4
votes
2 answers

NGINX proxy default cache time with Cache-Control and no expiration

I have caching enabled on an NGINX proxy. As I understand it, as long as I'm not ignoring the Cache-Control header in my proxy configuration (proxy_ignore_headers), the cache time before expiration can be set from the origin server using…
dlrust
  • 715
  • 2
  • 8
  • 12
4
votes
0 answers

Chain privoxy with another proxy to intercept SSL traffic

I'd like to setup Privoxy so that it can process HTTPS traffic in addition to HTTP, but it doesn't support SSL interception using my own self-signed certificate. I had the idea to have another proxy (call it "circular proxy") on my machine, via…
Aayla Secura
  • 137
  • 5
4
votes
1 answer

Proxy URL to different port via Lighttpd

I cannot seem to proxy a URL to another port on same hostname. I have user interface (Angular 5) running on somehost:8080 and the rest of the web application on somehost.com (port 80). I'd like to proxy http://somehost.com/xxx to…
Michael Niño
  • 101
  • 1
  • 6
4
votes
3 answers

nginx dynamic proxy_pass with variable between redirections

Nginx proxy_pass with variables are hard to understand. Can some one explain how would i acheive the below scenario. #first call /?proxytohost=http://blahblah.com #second redirection to / #third call /home location / { if ($arg_proxytohost) { …
raksja
  • 191
  • 1
  • 2
  • 8
4
votes
1 answer

IIS10 URL Rewrite 2.1 double encoding issue

I have an IIS10 server with ARR 3.0 and URL Rewrite Module 2.1 that acts as a reverse proxy for several other web servers. The other servers run on different ports, so the IIS10 server provides 'friendly URLs' on port 80. URL rewriting is used to…
Jorge Martins
  • 161
  • 1
  • 5
4
votes
0 answers

Q : How to nginx Conditional proxy_pass based on HTTP Header

How to do conditional proxy_pass based on custom HTTP Header Suppose I have 4 nginx Engine run in my private network, lets Call it : web1, web2, web3, web4. I have a main nginx server, sit betwen internet and my private network, lets call it :…
Bino Oetomo
  • 227
  • 1
  • 3
  • 11
4
votes
2 answers

nginx reverse stream proxy with multiple ports to the same server

I'm trying to use nginx as a reverse proxy to two different servers. The servers require the use of client-side certificates for authentication, which means nginx is configured as a stream proxy leveraging the map $ssl_preread_server_name for SNI…
Andrew
  • 2,142
  • 2
  • 19
  • 25
4
votes
2 answers

Apache 2.4 sends 502 errors when backend sends 401 on large file uploads

Using Apache 2.4.25 (Windows) and backend server Tomcat 8 (Windows). We have some client software that uploads files using HTTPS on an authenticated session that is proxied through Apache to Tomcat. However, if an authenticated session is not used…
MJB
  • 41
  • 1
  • 2
4
votes
2 answers

Reverse proxy HTTP to TCP

We have a service which listens on a TCP socket for a non-HTTP request. We'd like to put an HTTP reverse proxy in front of it such that the body of the HTTP request is forwarded as the entire request to the TCP socket. We've looked at doing this…
btucker
  • 181
  • 1
  • 4
4
votes
1 answer

Add proxy headers in named location using nested location regex

I'm trying to setup a WebSocket endpoint on my Rails API using Nginx and Puma. What I have (working but ugly) The following Nginx configuration works fine, however I feel like I could use something more clever to avoid duplication on both @puma and…
Habovh
  • 271
  • 3
  • 12
4
votes
1 answer

How do I "override" Server response header on a ReverseProxied website?

I am running a couple of websites on different server on a local network. All websites are Proxied via one server where HTTPS is added and the trafic is monitored. Currently, if someone makes a: curl -I subdomain.domain.tld The result is: curl -I…
Orphans
  • 1,396
  • 2
  • 18
  • 30
4
votes
1 answer

ERR_INCOMPLETE_CHUNKED_ENCODING when using AddOutputFilterByType in Apache reverse proxy

I'm trying to set up a Shopware site using Docker behind a Apache2 reverse proxy. Since the Shopware software for some reason puts its backend host "http://127.0.0.1:18084" into the JavaScript it sends to the browser, I tried to use mod_substitute…
Thomas Stets
  • 141
  • 1
  • 5