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
12
votes
1 answer

Simple reverse proxy with Traefik

I'm currently using Apache as proxy for my LXD containers, using this kind of settings: ServerName example.com ProxyRequests off ProxyPass / http://10.0.0.142/ retry=0 ProxyPassReverse / http://10.0.0.142/ …
lepe
  • 469
  • 2
  • 6
  • 25
12
votes
1 answer

Reverse proxy application and its static files with Nginx

I am trying to do something that seems to me very simple but I must be stupid or miss something very obvious because I cannot figure it out. I want to access the multiple web applications running on my server with a unique prefix for each one of…
12
votes
2 answers

Forward ssh connections to docker container by hostname

I have gotten into a very specific situation and although there are other ways to do this, I've kinda gotten obsessed with this and would like to find out a way to do it exactly like this: Background Say I have a server running several services…
Zia Ur Rehman
  • 221
  • 2
  • 5
12
votes
1 answer

How to stop nginx 301 auto redirect when trailing slash is not in URI?

Every time I try foobar.com/test in browser, nginx seems to redirect (301) the client to foobar.com/test/. This behaviour is unacceptable. The proxied server is a remote Apache web server. I have tried direct calls to the Apache server (without a…
Geo C.
  • 223
  • 1
  • 2
  • 5
12
votes
1 answer

Apache httpd error "proxy: ap_get_scoreboard_lb" with ProxyPass

I set up apache to proxy for tomcat but I am getting the following error when I target the page. I sometimes get a blank page or a 503: [Error] [Mon Dec 03 04:58:16 2012] [error] proxy: ap_get_scoreboard_lb(2) failed in child 29611 for worker…
Dark Star1
  • 1,385
  • 7
  • 22
  • 37
12
votes
2 answers

Reverse proxy for a subdirectory in nginx

I want to set up a Reverse proxy on my VPS for my Heroku app (http://lovemaple.heroku.com) So if I visit mysite.com/blog I can get the content in http://lovemaple.heroku.com I followed the instructions on the Apache wiki. location /couchdb { …
Maple
  • 121
  • 1
  • 1
  • 4
12
votes
3 answers

Should Nginx be at the front of HAProxy or opposite?

I have little experience in web site infrastructural architecture design. I know it might be situation specific. The web site is supposed to: 1) Need HTTPS support for some page (e.g. login page) while others are just HTTP page. 2) Need multiple web…
Morgan Cheng
  • 2,114
  • 2
  • 16
  • 13
12
votes
4 answers

Configure IIS 7 Reverse Proxy to connect to TeamCity Tomcat

We have an IIS 7 webserver configured and would like to create a reverse proxy for a TeamCity installation using Tomcat on the same machine. The IIS server site is https://somesite and I would like the TeamCity to appear as https://somesite/teamcity…
Cynicszm
  • 121
  • 1
  • 1
  • 4
11
votes
3 answers

Add samesite to cookies using Nginx as reverse proxy

With Nginx as reverse proxy, how do you add samesite=strict or samesite=lax to cookies?
Dr.Haribo
  • 213
  • 1
  • 2
  • 6
11
votes
3 answers

Failed to load resource: net::ERR_CONNECTION_RESET

Since I started using an application behind a reverse proxy (Apache2's mod_jk), I've noticed some pages would not load; but do load, without the reverse proxy settings. The error in Google Chrome: Failed to load resource:…
11
votes
2 answers

nginx proxy_pass rewrite of response header location

The aim of this nginx instance is to get GitLab and OpenWRT Luci to redirect through a reverse proxy. It's already working for several other websites, all which have a base url which seems to counter this issue. GitLab in this example is on the…
Jake Edwards
  • 267
  • 1
  • 2
  • 9
11
votes
1 answer

How to proxy a server based on domain name of request using nginx?

There is a situation where firstly all current requests should work as they currently working for certain domain name. For example www.hello.com A dynamic dns is going to point to the same static ip of www.hello.com server (somedomain.dnsdynamic.com…
11
votes
4 answers

nginx config fails with SSL key/pem (unique case)

I am trying to install SSL on my nginx reverse proxy with certified ssl keys but i get this message when i try to restart server: Restarting nginx: [emerg]: SSL_CTX_use_PrivateKey_file("/etc/nginx/conf.d/cert.key") failed (SSL: error:0906D06C:PEM…
Fredow
  • 123
  • 1
  • 1
  • 6
11
votes
2 answers

I need a reverse proxy solution for SSH

Hi here is a situation I have a server in a corporate data center for a project. I have an SSH access to this machine at port 22.There are some virtual machines running on this server and then at the back of every thing many other Operating systems…
Bond
  • 781
  • 4
  • 12
  • 22
10
votes
1 answer

How do I make protocol foo hostname-aware?

This is a canonical question about hostname-awareness and proxying. I know that some protocols are hostname-aware; that is, when I connect to the HTTP server at www.example.com it knows I want www.example.com's HTTP service, not www.example.net's,…
MadHatter
  • 79,770
  • 20
  • 184
  • 232