Questions tagged [reverse-proxy]

In computer networks, a reverse proxy is a type of proxy server that retrieves resources on behalf of a client from one or more servers. These resources are then returned to the client through the reverse proxy as though they originated from the server itself.

In computer networks, a reverse proxy is a type of proxy server that retrieves resources on behalf of a client from one or more servers. These resources are then returned to the client through the reverse proxy as though they originated from the server itself.

258 questions
22
votes
3 answers

Apache reverse proxy: no protocol handler

I am trying to configure a reverse proxy with apache, but I am getting a No protocol handler was valid for the URL error, which I do not understand. This is the relevant configuration of apache: ProxyRequests Off ProxyPreserveHost On
blueFast
  • 2,876
17
votes
2 answers

How to make nginx rewrite URIs in HTTP body content?

This is a follow-on to my earlier question on how to Make nginx reverse proxy 302 redirect to a URI sub-folder instead of root. I have an nginx proxy server that uses the rewrite and proxy_pass directives to proxy external requests to a URL like…
Steve HHH
  • 7,430
17
votes
4 answers

Instant reverse HTTP proxy from a Linux command-line

There is a nice trick to instantly serve contents of a current working directory by HTTP locally: $ python -m SimpleHTTPServer This command launches HTTP server at *:8000, serving $PWD contents. I'm looking for something similar, but for setting up…
13
votes
4 answers

Haproxy for SSH name based proxying

I have a host machine with several lxc containers. I am trying to give ssh access to containers directly based on domain names. For this I have tried setting up HAProxy. Could achieve this easily with ACLs in http mode. When I try the same with tcp…
Medhamsh
  • 303
12
votes
1 answer

How to make a local web server visible from the internet *without* setting up port forwarding on the router?

I develop websites on my (high-end) laptop, and I work from a variety of physical locations. I would like to save the hassle of constantly synchronizing with an externally visible web server in order for clients to test progress of the site (or for…
11
votes
3 answers

Apache as reverse proxy for multiple destinations and one default destination

Looking for help for the next Apache's reverse-proxy problem. have an Apache 2.4 on the localhost:80 (a.a.a.a:80) have 3 different web applications one runs on localhost:8000 (a.a.a.a:8000) two others are in another machines - so x.x.x.x:8000 and…
kobame
  • 435
  • 2
  • 5
  • 12
7
votes
1 answer

How do I use allow/deny in conjunction with set_real_ip_from?

My nginx backend server should only accept requests from my frontend, 1.2.3.4. However, I also want nginx to log the correct IP address, so I use set_real_ip_from. But by doing this, the allow rule in the config isn't matched, and nginx will always…
Jay
  • 81
6
votes
1 answer

Make nginx reverse proxy 302 redirect to a URI sub-folder instead of root

I have a web server on my LAN with the URL https://10.0.0.22 and I am trying to access it from the internet through an nginx reverse proxy with a URL like https://domain.com/my/web/app. The difficulty I'm having is that the local server sends a 302…
Steve HHH
  • 7,430
4
votes
1 answer

How does a reverse proxy server receive the subdomain?

I recently set up a reverse proxy server on some some Docker containers using Nginx and it works as expected. I am reverse proxying on these containers themselves to applications being run on these containers. I just don’t understand how the server…
Shraft
  • 195
4
votes
1 answer

Nginx reverse proxy to non-HTTP software

I'm wondering whether it's possible to do this with Nginx: server1.domain.com:9999 --> localhost:4000 server2.domain.com:9999 --> localhost:5000 server3.domain.com:9999 --> localhost:6000 server4.domain.com:9999 --> localhost:7000 With the services…
Sasino
  • 83
4
votes
0 answers

Airflow + Nginx set up gives Airflow 404 = lots of circles

I'm trying to set up Airflow behind nginx, using the instructions given here. airflow.cfg file base_url = https://myorg.com/airflow web_server_port = 8081 . . . enable_proxy_fix = True nginx configuration server { listen 443 ssl http2…
Blessy
  • 141
4
votes
2 answers

How to find which ip is hammering my website?

I have website which recently got so much traffic that my server load went to sky. load average: 83.99, 72.89, 77.70 My website is hosted on dedicated server with 64 GB RAM and Intel i7 6700k CPU. and is behind cloudflare. I don't use any analytics…
user176344
4
votes
0 answers

How can I proxy without context path?

I have been using apache/sonar like this. Order deny,allow Allow from all ProxyPass /sonar http://localhost:7070/sonar nocanon ProxyPassReverse /sonar …
Jin Kwon
  • 336
3
votes
0 answers

configuring squid reverse proxy

I want to configure reverse proxy by Squid. I edited squid.config but it doesn't work # TAG: http_access http_access allow all http_access allow localhost http_access deny all # TAG: http_port http_port 3128 defaultsite=220.69.***.*1 //my…
3
votes
1 answer

Is my understanding of the WSGI path correct

My past web application experience is limited to a few Apache+PHP experiments. Starting from this background I've been reading up on using Python for REST services, and this is my current understanding of the stack. Is this picture…
1
2 3
17 18