Device or program that stands between two or more interconnected programs/devices
Questions tagged [proxy]
3307 questions
16
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 proxying that have absolute paths. This breaks the site.…

ZZ9
- 888
- 3
- 16
- 47
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.localhost/ABC%2fXYZ
Without AllowEncodedSlashes,…

gatoatigrado
- 469
- 1
- 3
- 8
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 gateway.example.com nc %h 22
where gateway.example.com is a server at work that is connected to both the public Internet and an…

Graham
- 261
- 1
- 2
- 7
16
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 installed.
I am using Putty on Windows boxes to…

CT.
- 741
- 2
- 8
- 20
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 of certain file types on to company machines. Most…

RobertTheGrey
- 680
- 2
- 8
- 16
15
votes
3 answers
NGINX is not forwarding a header value when using proxy_pass
I have the following setup and configured to send all /api requests to a different server:
location /api {
proxy_pass https://myapp.herokuapp.com;
rewrite ^/api/(.*) /$1 break;
}
My app sends a…

dallasclark
- 771
- 2
- 7
- 17
15
votes
4 answers
Apache VirtualHost Proxy with a Subdirectory
Currently, we have an IIS server as our primary web server. We are implementing an Apache server in its place, but still need to have the IIS server accessible. Typically, this is a simple thing, because Apache2 can proxy a subdomain to this…

Jerbot
- 394
- 2
- 3
- 12
15
votes
3 answers
Info on Providing Proxy Servers to Iranian Dissidents?
Does anyone know of efforts to provide proxy servers to Iranian dissidents?
I would like to help. Caveats: I am a networking newbie with some underused hardware of lightweight capability, so I don't know how much I could provide. I don't know if…

chernevik
- 725
- 3
- 10
- 19
14
votes
2 answers
How does ssh ProxyCommand actually work?
I am comfortable with using the ProxyCommand feature of ssh and can use it to hop through mulitple bastion hosts to reach the final host efficiently. But I just can't seem to understand how it actually works in the backend.
For eg. I have the…

Naruto Uzumaki
- 329
- 1
- 4
- 9
14
votes
2 answers
nginx: Why I can't put proxy_set_header inside an if clause?
With this configuration:
server {
listen 8080;
location / {
if ($http_cookie ~* "mycookie") {
proxy_set_header X-Request $request;
proxy_pass http://localhost:8081;
}
}
}
I have this error when I…

Neuquino
- 303
- 2
- 5
- 11
14
votes
2 answers
Dynamic proxy with nginx based on url param
I am loading images from an external site which I want to use in a 3D WebGL canvas. However this is not allowed due to origin.
The URL I am generating from the web page is as…

sphvn
- 245
- 1
- 2
- 6
14
votes
3 answers
How to automatically configure username/password with proxy PAC file?
I have rather complex proxy setup and one of those proxies requires username/password. Is there a way to configure the username/password so that users don't have to enter them when traffic is redirected to this one proxy? Atleast returning PROXY…

Raynet
- 511
- 2
- 4
- 11
13
votes
1 answer
Single server, nginx as a reverse proxy, multiple domains/websites
I have this nginx config for my website on https where nginx is used as a reverse proxy server:
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name my_domain123.com www.my_domain123.com;
return 301…

Rakori
- 239
- 1
- 2
- 5
13
votes
1 answer
How to enable SOCKS5 for Squid proxy?
Squid'd default is to operate as an HTTP proxy; however, this FAQ https://docstore.mik.ua/squid/FAQ-4.html#ss4.10 says "No changes are necessary to use Squid with socks5. Simply add the usual -Dbind=SOCKSbind etc., to the compile line and -lsocks to…

xendi
- 414
- 5
- 10
- 22
13
votes
2 answers
Nginx local fallback error page if proxy destination is unavailable
I'm forwarding requests to a local service through a Nginx server. What I try now to accomplish is to fallback to a local error page in case the service becomes unavailable.
My current configuration is
server {
listen 80;
server_name …

Dennis Winter
- 448
- 2
- 7
- 16