Questions tagged [proxy]

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

3307 questions
8
votes
4 answers

Allow a certain URL path with Squid

I'm using Squid 3.4 on Debian, and I want to know how to allow certain sub-URLs while banning the rest of them. Particularly, I want to ban access to reddit.com/* but allow access to reddit.com/r/foo/* and reddit.com/r/foo/ acl bad url_regex…
unsi
  • 81
  • 1
  • 1
  • 3
8
votes
2 answers

HAProxy switch to backup on 500 errors and/or server down

I'm setting up an HAProxy in front of only 2 backend servers, with a particular configuration: any request should go to server A; but, if server A returns a 5xx error code, all request should go to a backup server B. When A returns "up", all the…
8
votes
7 answers

Why would I use Squid?

I have Googled, searched StackOverflow and here. Still I can not fully understand what or why someone would use Squid. All I can find out so far is that it is some sort of cache that can make it less work that your server (i.e. Apache) has to do. So…
JasonDavis
  • 2,658
  • 6
  • 25
  • 32
8
votes
2 answers

Redirect traffic based on url to different ip address maintaining port and url information

We have a QA version, a UAT version, and a DEV version of webapp. Users need to access these via http://uat.company.com:41002/webapp, http://qa.company.com:41002/webapp, and http://dev.company.com:41002/webapp. There is also a different webapp on…
Mitch Kent
  • 261
  • 1
  • 2
  • 11
8
votes
3 answers

Forward NTLM authentication to corporate proxy from local proxy server

I have a Python script which is supposed to access various web API's from our server out through to the internet. The issue is that Python support from what I've seen is quite poor when it comes to supporting NTLM authentication. This causes our…
self.
  • 183
  • 1
  • 1
  • 5
8
votes
3 answers

How to make an existing caching Nginx proxy use another proxy to bypass a firewall?

My question is about using Nginx as a proxy behind another proxy. (Somewhat confusing.) I want to set up Nginx so it acts as a caching proxy server to an npm mirror. Here is the link: http://eng.yammer.com/a-private-npm-cache/ On my local machine,…
Philipp Claßen
  • 551
  • 2
  • 8
  • 21
8
votes
2 answers

nginx serving alternate location on 404

I'm trying to set up an nginx config as follows: When receiving a request like /tile/SteveCountryVic/1/2/3.png: Attempt to pass it through to http://localhost:5005/1/2/3.png If that 404s, pass it to another server as…
Steve Bennett
  • 5,750
  • 12
  • 47
  • 59
8
votes
3 answers

Nginx serving content from the wrong "virtual host" while accessing with https

I have a server running both Nginx and Apache in a proxy setup, Nginx serves the static content and Apache the dynamic content which works really well. This setup is currently hosting two versions of the same site, lets call them production.com and…
Lars
  • 578
  • 2
  • 8
  • 18
8
votes
2 answers

Nginx clear X-Forwarded-For before setting

What can I use in the nginx config to make it clear any existing X-Forwarded-For headers before setting its own? I am currently using Nginx to terminate SSL before passing traffic to HAProxy to load balance. Right now, I have: proxy_set_header…
sidprak
  • 400
  • 1
  • 4
  • 9
8
votes
1 answer

mod_deflate - Optimal configuration for most browsers

I was wondering if someone here could help me determine the optimal standard configuration for using mod deflate with Apache. Basically, mod_deflate recommends using the following configuration for getting started right away: Compress only a few…
Jason Huntley
  • 1,253
  • 3
  • 10
  • 22
8
votes
3 answers

How can I reroute a sub-domain to localhost + port number?

I have several web applications running on my developer machine. They mimic our production web applications which are hosted on sub-domain. For example, consider: api.myserver.com - is mimicked by 127.0.0.1:8000 www.myserver.com - is mimicked…
urig
  • 187
  • 1
  • 2
  • 8
8
votes
2 answers

rsync or sftp?

I am trying to send huge (huge as in approx 5 gb) files between servers .. Which is better, sftp or rsync ? Could someone point me to a comparision of sftp vs rsync if any available ? Is one better than the other ? If yes why ? Please advice..
Shrinath
  • 297
  • 1
  • 3
  • 18
8
votes
2 answers

Is it possible to use proxy-arp back to the same interface?

I have a WiFi Access Point connected to a Linux Router. The Router is itself connected to the Internet. For multiple reasons (mostly to control security and quality of service), I want to force all the users' traffic to go through the Linux…
MiniQuark
  • 3,875
  • 2
  • 21
  • 23
7
votes
1 answer

Is it permissible for an intermediate proxy to add cookies during proxy authentication?

I recently encountered a certain security appliance (BlueCoat) which requires that all connections to the internet must be proxied through it (hello there, man-in-the-middle) and accordingly uses a special SSL certificate to intercept all…
Patrick
  • 323
  • 3
  • 11
7
votes
3 answers

Redirect SSH Users for Docker: Gitlab and Docker: Bitbucket

As you already read in the title I am currently running multiple docker containers which are used as git servers and normally should run under port 22. This is obviously not working, but my requests would be the following. Have the following…