Questions tagged [proxy]

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

Filter by
Sorted by
Tagged with
152 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/...
Continuation's user avatar
  • 3,110
100 votes
7 answers

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

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 ...
wrangler's user avatar
  • 3,130
89 votes
4 answers

Nginx Redirect via Proxy, Rewrite and Preserve URL

In Nginx we have been trying to redirect a URL as follows: -> where the user still sees the original URL in their browser. Once the user is ...
robjohncox's user avatar
  • 1,045
69 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: <VirtualHost> ServerName ProxyPass / </...
tylerl's user avatar
  • 15.1k
67 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/...
Niels's user avatar
  • 821
61 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:...
bwizzy's user avatar
  • 1,295
54 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 ...
Jakub Arnold's user avatar
  • 1,764
47 votes
5 answers

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

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, ...
Adam Matan's user avatar
  • 13.4k
45 votes
6 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 ...
Blixt's user avatar
  • 595
42 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 ...
Chris's user avatar
  • 933
38 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 ...
JosephGarrone's user avatar
37 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 ...
markasoftware's user avatar
35 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 ...
Sise's user avatar
  • 395
33 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 ...
JMD's user avatar
  • 731
32 votes
2 answers

Nginx proxy_read_timeout vs. proxy_connect_timeout

I've started using Nginx as a reverse proxy for a set of servers that provide some sort of service. The service can be rather slow at times (its running on Java and the JVM sometimes gets stuck in "...
Guss's user avatar
  • 2,760
32 votes
4 answers

How DNS lookups work when using an HTTP proxy (or not) in IE

I recently participated in a discussion regarding what happens when a client requests a page from a proxy server. I just wanted to make sure that my understanding of this sequence of events was ...
orange_aurelius's user avatar
31 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 ...
Brenton Alker's user avatar
30 votes
3 answers

What effect does https traffic have on web cache proxy servers?

I just took two university courses on computer security and internet programming. I was thinking about this the other day: Web cache proxy servers cache popular content from servers on the web. This ...
ejsuncy's user avatar
  • 403
29 votes
6 answers

How do I configure proxy settings for LOCAL SYSTEM?

If I edit Proxy Settings through the Control Panel, the settings are stored in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable and ...\ProxyServer. These ...
Rasmus Faber's user avatar
29 votes
5 answers

Why does sub_filter seem to not work when used in conjunction with proxy_pass?

Given the following configuration of nginx: server { listen 80; server_name apilocal; sub_filter "apiupstream/api" "apilocal"; sub_filter_once off; location /people/ { ...
kylehayes's user avatar
  • 367
28 votes
3 answers

Apache Proxy TimeOut

I am trying to understand what is happening with the following message in our Apache 2.2 error_log: Wed May 18 21:03:29 2011] [error] [client] (70007)The timeout specified has expired: ...
roacha's user avatar
  • 447
28 votes
1 answer

Why am I getting an "Invalid command 'ProxyPass'" error when I start my Apache 2.2 server?

I'm having trouble getting Proxying working in Apache 2.2 When I try to start it, I get an Invalid command 'ProxyPass' error. that would be indicative of proxy_http_module not being loaded. However ...
BIBD's user avatar
  • 1,866
27 votes
4 answers

Nginx proxy to back-end with SSL client certificate authentication

I have two servers, both have nginx. Server A is listening to 443 and is configured to authenticate with a Client SSL certificate. Server B has an internal process that needs to communicate to Server ...
Bastien974's user avatar
  • 1,906
26 votes
2 answers

Proxy exceptions when using $http_proxy env var? [closed]

In a typical browser, when we set a proxy server, we can define a list of hostnames/IP addresses that are not to use the proxy server. How do we accomplish the same thing when using $http_proxy? I ...
feicipet's user avatar
  • 565
25 votes
8 answers

How can I disable encryption on openssh?

I'm having performance problems using openssh (server) and putty (client) combination to use a remote webproxy. I'd like to disable encryption and test the results to see if it makes a difference. How ...
user avatar
25 votes
4 answers

Can any of the popular IM networks work like this?

Joe, Jack and Jill use IM as a communication medium among themselves in Company A, where they work, and with customers and partners around the world. No goofing off here -- it's a legitimate work tool....
JCCyC's user avatar
  • 680
25 votes
1 answer

Relationship between bastion host and jump host

What's are the differences/similarities between a "bastion host" and a "jump host"? Are they usually used interchangeably?
kolistivra's user avatar
24 votes
10 answers

How to inject HTML code into every delivered HTML page?

I've got an Apache web server that delivers static HTML pages. For some reason I can't change the files themselves, but I still want to inject some HTML into every page that is being served. Is this ...
Node's user avatar
  • 1,644
24 votes
6 answers

How can I set proxy for subversion with ssh tunnel?

I want to check out/update the code via proxy since my local connection is slow. I setup ssh tunnel : ssh -D 8090 [email protected] to forward all the packets to my localhost:8090. How can I set up ...
user avatar
23 votes
2 answers

using trailing slashes in nginx configuration

location /product { proxy_pass; } if I use my first location description for product folder, I should use and I can not use http://...
barteloma's user avatar
  • 339
22 votes
3 answers

Difference beetween DNAT and REDIRECT in IPTABLES

Okay, it may be because I am dense or maybe just not finding the right source, but I can't understand why one of these IPTABLES setups would be better than the other. Here is my setup: I have a box ...
QWade's user avatar
  • 927
22 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: Tomcat server: I tried to put this ...
carlo.polisini's user avatar
21 votes
5 answers

Easy TCP proxy on Windows? [closed]

What I want is to configure a computer in home with Windows and use it as a TCP proxy for connect and route packets from the 80 to port 23 in another server in the Internet
victor hugo's user avatar
20 votes
1 answer

how to make squid work like proxy only, without caching anything [duplicate]

Possible Duplicate: How to prevent squid from caching and just filter? I want to make squid work purely as a proxy, so that it does not cache anything. Is such a usage of squid possible? How do ...
Arvind's user avatar
  • 501
20 votes
3 answers

How to use Nginx as a HTTP/HTTPS proxy server? [closed]

Is it possible to use Nginx as a HTTP/HTTPS proxy?
vlad's user avatar
  • 846
20 votes
3 answers

nginx proxy retry while backend is restarting

Nginx returns 502 while the backend is restarting. How can I make nginx proxy retry N times with M seconds delay? Is there a plugin or something else?
user78416's user avatar
  • 301
19 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 ...
Darren's user avatar
  • 311
19 votes
6 answers

Is there any way to cache HTTPS requests in a proxy server?

We are using Squid proxy server in our environment and we want to cache HTTPS requests. Is there any way to configure Squid or in general a proxy server to cache HTTPS requests?
Supratik's user avatar
  • 2,164
19 votes
2 answers

Remote Desktop over SSH SOCKS proxy to bypass firewall [closed]

I'm trying to connect to a Windows server from my Mac using RDC2.1 for Mac. The problem is the server I need to connect to is guarded by the evil dragon - IP-based access control on a completely ...
simonhamp's user avatar
  • 465
19 votes
3 answers

SSH over HTTPS with proxytunnel and nginx

I'm trying to setup an ssh over https connection using nginx. I haven't found any working examples, so any help would be appreciated! ~$ cat .ssh/config Host Hostname ...
Thermionix's user avatar
18 votes
2 answers

Nginx not caching data

I have a REST API behind an nginx proxy. Proxying works fine, however I am unable to cache any responses. Any help would be much appreciated: Nginx config: worker_processes 10; error_log logs/...
nick_v1's user avatar
  • 365
18 votes
1 answer

How to divert traffic based on hostname using HAProxy?

I've had some initial success with HAProxy setting up a bunch of app servers listening on various other ports. I now have another webserver listening on one port, and i'd like to what changes to make ...
Bosky's user avatar
  • 315
18 votes
4 answers

Best practice for proxying package repositories

I have a collection of CentOS servers in my corporate network. For security reasons, most servers do not have general outbound internet access unless it is a core functional requirement for the server....
Dave Smith's user avatar
17 votes
1 answer

How to prevent squid from caching and just filter?

I have set a proxy server on my network. I only want to filter the web traffic. So, I have Squid as a proxy and Qlproxy as the filter : My server have only ...
THpubs's user avatar
  • 1,715
17 votes
3 answers

Is it possible to replace content on every page passed through a proxy similar to how mod_rewrite is used for URLs?

Is it possible to replace content on every page passed through a proxy similar to how mod_rewrite is used for URLs? The documentation on substitute is not clear. I have some pages I am reverse ...
ZZ9's user avatar
  • 918
17 votes
5 answers

Can I disable interactive shell access while tunneling web traffic through SSH?

I am looking into implementing SSH tunneling as a cheap VPN solution for outside users to access Intranet-only facing web applications. I currently am using Ubuntu Server 10.04.1 64 bit with OpenSSH ...
CT.'s user avatar
  • 751
17 votes
1 answer

Proxy with netcat forever

I am proxying a VNC TCP server port with netcat. The proxy machine runs linux. This is the comand I use: mkfifo backpipe nc -l 5902 0<backpipe | nc 5902 1>backpipe is ...
Alojz Janez's user avatar
16 votes
8 answers

How can I download an executable file inside the company network when it's been locked down?

This might seem like a silly (or nefarious) question at first glance, but allow me to elaborate... We have implemented all sorts of measures on the company network and proxy to prevent the download ...
RobertTheGrey's user avatar
16 votes
4 answers

SSH through multiple hosts using ProxyCommand?

I have an entry in ~/.ssh/config on my computer at home that look like this: host foo bar ProxyCommand ssh -x -a -q nc %h 22 where is a server at work ...
Graham's user avatar
  • 261
16 votes
1 answer

can't get mod_proxy to correctly forward encoded slash (/) characters (%2f)

I have a virtual host set up to redirect ntung-gitblit.localhost --> myserver:1279. However, it's not working with forward encoded slashes (%2f). The URL I'm trying to access is, http://ntung-gitblit....
gatoatigrado's user avatar

2 3 4 5