Questions tagged [proxy]

Device or program that stands between two or more interconnected programs/devices

3215 questions
151
votes
13 answers

How to set up Nginx as a caching reverse proxy?

I heard recently that Nginx has added caching to its reverse proxy feature. I looked around but couldn't find much info about it. I want to set up Nginx as a caching reverse proxy in front of Apache/Django: to have Nginx proxy requests for some (but…
Continuation
  • 3,050
  • 5
  • 29
  • 38
93
votes
7 answers

SSH from A through B to C, using private key on B

I'm looking for a simple way to SSH from my local machine, A, through a proxy, B, to a destination host, C. The private key that goes with the public key on C is on B, and I can't put that key on my local machine. Any tips? Also, I'd like to be…
wrangler
  • 2,920
  • 5
  • 23
  • 20
87
votes
4 answers

Nginx Redirect via Proxy, Rewrite and Preserve URL

In Nginx we have been trying to redirect a URL as follows: http://example.com/some/path -> http://192.168.1.24 where the user still sees the original URL in their browser. Once the user is redirected, say they click on the link to…
robjohncox
  • 1,025
  • 1
  • 8
  • 7
67
votes
2 answers

Apache ProxyPass with SSL

I want to proxy requests from an SSL site via a non-SSL site. My Apache httpd.conf looks like this: ServerName foo.com ProxyPass / https://bar.com/ So, when I visit http://foo.com, I expect apache to…
tylerl
  • 14,885
  • 7
  • 49
  • 71
62
votes
2 answers

Nginx location regex doesn't work with proxy pass

I'm trying to get these 2 location directives working in Nginx but I'm getting some errors back when booting Nginx. location ~ ^/smx/(test|production) { proxy_pass http://localhost:8181/cxf; } location ~ ^/es/(test|production)…
Niels
  • 771
  • 2
  • 8
  • 8
59
votes
4 answers

How to use nginx to proxy to a host requiring authentication?

How can I setup an nginx proxy_pass directive that will also include HTTP Basic authentication information sent to the proxy host? This is an example of the URL I need to proxy to: http://username:password@192.168.0.5/export?uuid=1234567890 The…
bwizzy
  • 1,265
  • 4
  • 14
  • 17
47
votes
8 answers

Can I create SSH to tunnel HTTP through server like it was proxy?

Say I have a server and client. I need to create connection from client to a website through server like it was proxy. Is it possible to do this using a SSH tunel, or do I have to install some proxy service to the server?
Jakub Arnold
  • 1,674
  • 10
  • 25
  • 33
45
votes
5 answers

Is there a cloud-based reverse proxy solution in AWS?

The system I have an API deployed on EC2 machines on AWS. Incoming HTTPS requests are passed to an elastic load balancer. The load balancer handles the SSL, and passes the request to an Nginx server, that proxies the requests to the specific…
Adam Matan
  • 12,504
  • 19
  • 54
  • 73
45
votes
5 answers

Configuring Apache2 to proxy WebSocket?

The WebSocket protocol is an extension of the HTTP protocol. However, the proxy module of Apache2 does not seem to know about it, and throws away crucial headers, converting the call to a standard HTTP call. Is there a way to make Apache2 either (1)…
Blixt
  • 595
  • 1
  • 4
  • 7
39
votes
5 answers

windows 10 ssh proxycommand: "posix_spawn: No such file or directory"

I use Windows10 and I need to use a jumphost to get to my Linux servers. Thus I have configured my .ssh\config like so: Host jumphost HostName jumphost.server.local Host server*.server.local ProxyCommand ssh jumphost netcat -w 120 %h %p But when…
Chris
  • 881
  • 1
  • 7
  • 10
37
votes
2 answers

Proxy Pass not working

I am attempting to get ProxyPass to work on my OpenSUSE 13.1 install. I have tried: a2enmod proxy a2enmod proxy_http a2enmod proxy_connect systemctl restart apache2 systemctl reload apache2 (All combinations of statements to no avail). I keep…
JosephGarrone
  • 471
  • 1
  • 5
  • 8
34
votes
9 answers

How to duplicate TCP traffic to one or multiple remote servers for benchmarking purposes?

Infrastructure: Servers in Datacenter, OS - Debian Squeeze, Webserver - Apache 2.2.16 Situation: The live server is in use by our cusotmers every day, which makes it impossible to test adjustments and improvements. Therefore we would like to…
Sise
  • 385
  • 2
  • 4
  • 9
31
votes
7 answers

Apache VirtualHost with mod-proxy and SSL

I am trying to set up a server with multiple web applications which will all be served through apache VirtualHost (apache running on the same server). My main constraint is that each web application must use SSL encryption. After googling for a…
JMD
  • 691
  • 1
  • 7
  • 9
30
votes
6 answers

Nginx proxy by Request Method

Is it possible/how can I configure an Nginx location block to proxy to different backends depending on the request method (ie. GET/POST)? The reason is, I am currently handling the 2 methods at 2 different URLs (one via http proxy and the other via…
Brenton Alker
  • 460
  • 1
  • 4
  • 7
29
votes
2 answers

How to reverse proxy to different places depending on subdomain in Nginx?

I have multiple subdomains, all pointing to one machine, and one IP address. On this machine, I want to have nginx acting as a reverse proxy, and depending on which subdomain was used to access the machine, I want it to reverse proxy to a different…
markasoftware
  • 409
  • 1
  • 5
  • 7
1
2 3
99 100