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
25
votes
2 answers

nginx add header conditional on an upstream_http_ variable

I have a reverse proxy on nginx which proxies quite a few sites. I have recently enabled HTTP Strict Transport Security for all SSL-enabled websites. I now have one site that doesn't want to have this enabled. I thought I would just do a simple…
Gerry
  • 373
  • 1
  • 3
  • 4
25
votes
4 answers

proxy:error AH00898: Error during SSL Handshake with remote server

I have a server that acts as a front-end for a cPanel mailserver in a network. The apache proxy on the front-end server ran for 152 days without fault then suddenly I now get 500/502 errors when using it to access the webmail clients of the…
DePages
  • 251
  • 1
  • 3
  • 4
23
votes
3 answers

Apache proxy_http redirect to ip and set hostname

hopefully you guys can help me with a proxy problem I have. What I already have I have set up an apache http reverse proxy, to proxy requests from *.proxy.domain to *.intern.domain. The apache is the only way to reach my internal webapplications…
mohrphium
  • 645
  • 2
  • 9
  • 17
23
votes
1 answer

Redirect a subpath to a external host with Nginx

I need to create a quite simple map in Nginx redirecting a subpath to another server that is located in the same subnet. Nginx server: 192.168.0.2 Tomcat server: 192.168.0.3:8443 I tried to put this in the server section location /tomcatapi/…
carlo.polisini
  • 335
  • 1
  • 3
  • 7
21
votes
3 answers

nginx failover without load balancing

I'm having trouble configuring nginx. I'm using nignx as a reverse proxy. I want to send my all requests to my first server. If the first server is down, I want to send requests to second server. In short, how can I have a failover solution without…
Serhat
  • 333
  • 1
  • 2
  • 6
20
votes
2 answers

NGINX Proxy_Pass remove url substring

I have one NGINX acting as reverse proxy. I need to remove a substring string_1 from the URL, the rest of the URL is variable. Example: Origin: http://host:port/string_1/string_X/command?xxxxx Destination:…
Pedro
  • 667
  • 2
  • 9
  • 20
20
votes
2 answers

Some nginx reverse proxy configs stops working once a day

I have an nginx reverse-proxy which proxies requests from an outer amazon ELB to internal ELBs. I have 6 backend instances that handles the requests. The site-enabled configs looks like this, but there are different port numbers and proxy_pass.…
user202172
  • 631
  • 1
  • 5
  • 10
19
votes
6 answers

How to solve nginx reverse proxy mixed content(http, https)

New to nginx. Played with it for 2 days and cannot figure out how to solve this: I have a bunch of VMs running in one box, the box is behind my router obviously, one of the VMs is running nginx(my reverse proxy) and is set as DMZ. I have got SSL…
anetworknoobie
  • 193
  • 1
  • 1
  • 5
18
votes
1 answer

nginx proxy subdomains to other addresses and ports

I'm newbie with nginx, but I need to create some proxy rules based on the subdomain to redirect to another IP and Port. This is my case: My domain.com has IP y.y.y.y and accepts requests on port 80 My subdomains are: - admin.domain.com -> I need to…
Beto Neto
  • 595
  • 1
  • 4
  • 11
18
votes
6 answers

How to proxy /grafana with nginx?

I've setup and started default grafana and it works as expected on http://localhost:3000. I'm trying to proxy it with nginx where I have ssl installed. I'm trying to have it respond to https://localhost/grafana but it just serves the…
AXE Labs
  • 1,549
  • 5
  • 19
  • 24
18
votes
4 answers

Set header in apache if it doesn't already exist

I have a proxy that is injecting some headers but I want to modify it so it only sets the headers if they are not already present: RequestHeader set MY_HEADER "value" ProxyPass http://127.0.0.1:8000/api …
Hobozilla
  • 324
  • 1
  • 3
  • 8
17
votes
1 answer

nginx proxy_pass using subfolder

ok, this task should be simple but I just can't get it to work. I would like to have a subfolder after my domain name (actually after the IP of that domain name), which redirects to a specific port on the same server. Essentially, I want to get rid…
pAt84
  • 311
  • 1
  • 2
  • 6
17
votes
1 answer

Configuring Apache 2.4 mod_proxy_wstunnel for Socket.IO 1.0

I'm trying to configure Apache 2.4 for proxying the websocket connection for socket.io to a node.js websocket server, using mod_proxy_wstunnel. We had this working fine with socket.io 0.9, but with the 1.0 release they changed the socket endpoint…
Twipped
  • 643
  • 2
  • 7
  • 10
17
votes
2 answers

Apache URL rewriting in reverse proxy

I'm deploying Apache in front of a Karaf-hosted application (Apache and Karaf are on separate servers). I want Apache to operate as a reverse proxy and also to hide part of the URL. The URL to get the log-in page of the application directly from…
17
votes
7 answers

Will a reverse proxy in front of web server improve security?

Third-party security professional is recommending we run a reverse proxy in front of the web server (all hosted in the DMZ) as a best practice security measure. I know this is a typical recommended architecture as it provides another level of…
Darren
  • 191
  • 1
  • 1
  • 4