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

learn more… | top users | synonyms (1)

124
votes
12answers
129k views

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/...
26
votes
2answers
73k views

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 ...
19
votes
7answers
74k views

Apache VirtualHost with mod-proxy and SSL

I am trying to setup a server with multiple web applications which will all be served through apache VirtualHost (apache running on the same server). My main constrain is that each web application ...
10
votes
5answers
21k views

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
15
votes
3answers
31k views

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:...
8
votes
1answer
14k views

Proxy mail to different smtp server with Postfix

How can I forward (or proxy) mail to different smtp servers depending on the To address? I've got one machine with an SMTP (postfix) server listening on port 25. I want to use Lamson (http://...
6
votes
1answer
10k views

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 ...
9
votes
1answer
40k views

Internet Explorer 9 & 10 Group Policy Preferences missing

I have a single Domain Controller network (Windows Server 2008 R2, running on the 2003 Forest/domain level), with the clients currently migrating from WinXP Pro to Win7 Pro. I Need to control the ...
2
votes
4answers
4k views

Where to find and how to block blacklisted IPs and proxies?

Good day everyone! I'm looking for a way to block incoming requests from blacklisted IPs and proxies (mostly anonymous) to my server. While it's quite obvious how to do it using Apache config the ...
37
votes
2answers
71k views

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 1.2.3.4:80> ServerName foo.com ProxyPass / https://bar.com/ </...
11
votes
3answers
10k views

NGINX as http proxy server (not reverse proxy) [closed]

Is it possible to use nginx as ordinal http/https proxy? (not reverse http proxy) UPDATE: Yes, i know about squid/oops/tinyproxy/etc. Please do not answer if you dont know answer to question (or just ...
11
votes
1answer
24k views

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 : http://www.quintolabs.com/qlicap_info.php My server have only ...
4
votes
1answer
5k views

How to create UDP proxy using iptables

I have a server running UDP server on port 50000. This server receives updates from clients, and pings back the clients every 5 seconds to the socket they were connected from. Now I want to redirect ...
10
votes
3answers
12k views

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/...
7
votes
2answers
3k views

Caching proxy for yum and debian repositories

Does a caching proxy for yum exist, similar to approx for Debian repositories? Is there a way to have reprepro behave the same as approx? I have heard that approx was not as stable; besides, I would ...
2
votes
2answers
5k views

Squid Proxy Server: limit total bandwidth

We have a marvellous squid proxy with dansguardian for filetering and they both work just great. Is there any easy way to limit the total bandwidth usage? I'd like to set the max amount of squid users ...
6
votes
3answers
10k views

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 ...
5
votes
2answers
4k views

Nginx (for static files) and Apache (for dynamic content)?

So, my entire application runs on apache just fine. However, I want to test how much the requests per second increases if I put all static files through nginx instead. I found this thread: http://...
1
vote
3answers
4k views

proxy script does not work when two networking cards are connected. How to fix this?

I have deployed a wpad.dat. Works like a charm except for some users that are connected to two networks at the same time (ethernet and another networkadapter that emulates an analog modem for fax). I ...
0
votes
4answers
562 views

How to make proxy on nginx?

How would I set my webservers to work in way described below? Http request: mypublic.com ---> handled normally by nginx as it is set up already (listen 80;) Http request: myprivate.com ---> handled ...
5
votes
3answers
3k views

Could this server log mean my server is being used as a proxy?

I came across the following entry in my access.log: 58.218.199.147 - - [05/Jun/2012:12:56:04 +1000] "GET http://proxyproxys.com/ HTTP/1.1" 200 183 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5....
3
votes
1answer
2k views

Squid and Active Directory authentication

I want to integrate a Squid proxy with an Active Directory domain, so that the following is achieved: I can grant/deny access to web sites based on user accounts and/or groups. Domain users don't ...
2
votes
2answers
351 views

Proxy SSH to hide endpoints [duplicate]

Has anyone done SSH proxying that is transparent to the user, but the end host they are routed to is determined by any of the following: username, identity key, DNS hostname. I guess DNS hostname ...
1
vote
2answers
1k views

running nginx as a reverse proxy with apache

Q1) Do I need mod_deflate running on apache? does it help in performance in anyway? Q2) Do I need mod_cache running on apache if nginx is serving a static caching proxy? <IfModule mod_cache.c> ...
4
votes
2answers
7k views

dnsResolve and isInNet functions Problem

We have a Proxy.pac file: function FindProxyForURL(url, host) { if (dnsResolve("ProxyServer") == "10.1.1.116") if (dnsDomainLevels(host) == 0 || isInNet(host, "10.0.0.0","255.0.0.0") || ...
3
votes
0answers
6k views

nginx as smtp proxy [closed]

I was ordered to configure nginx as SMTP proxy. That's all details I have. I've looked though some books and docs and don't see neither any examples of such configuration nor explanations of why this ...
0
votes
1answer
254 views

nginx open reverse proxy?

Somehow, and I'm not sure how, we have configured an nginx reverse proxy that is acting as an open proxy. The log files tells us the matching requests are going against the following conf file: map $...
0
votes
2answers
44 views

Setting up different application instances under one DNS

We have a custom java web app. We are setting it up in instances in different vps (different providers, different locations). We have for example: Instance 1: http://server1/app1 Instance 2: http://...
0
votes
2answers
776 views

Is it possible to filter/edit web content using Apache/Nginx/Lighttpd?

Is it possible to use any of the following HTTP servers: Apache, Nginx or Lighttpd as a proxy to make the following: Disallow certain HTTP bodies (web pages) based on their content (e. g., words) ...
0
votes
2answers
1k views

SSH and port forward socks proxy

I would like to setup an ssh tunnel that includes 3 machines. One machine I want to make http requests from but can only connect to a central server and outbound port 80 requests. The server is a ...
0
votes
1answer
216 views

SQL server port is blocked on client machine

I have a client machine on which sql server is installed. This machine is using the internet though a proxy machine. On the proxy machine wingate is installed. I could not connect to the remote sql ...
39
votes
4answers
44k views

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 ...
13
votes
2answers
21k views

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 ...
10
votes
5answers
15k views

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 ...
14
votes
6answers
13k views

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 ...
4
votes
1answer
5k views

nginx reverse proxy slows down my throughput by half

I'm currently using nginx to proxy back to gunicorn with 8 workers. I'm using an amazon extra large instance with 4 virtual cores. When I connect to gunicorn directly I get about 10K requests/sec. ...
19
votes
10answers
27k views

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 ...
9
votes
11answers
56k views

Internet Explorer isn't auto-discovering http://wpad/wpad.dat auto-config

I am being driven to frustration by this problem. I have set up a file called wpad.dat (essentially, a proxy.pac file renamed) and put it on an internal web site. I've set up DNS entries so host name ...
6
votes
4answers
24k views

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 ...
10
votes
4answers
3k views

Load balancing using IIS7 request routing and load balancing module

Microsoft has a lot of documentation about their somewhat new load balancing and request routing module for IIS7 located here: http://blogs.iis.net/bills/archive/2009/02/16/iis7-request-routing-and-...
9
votes
1answer
14k views

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 ...
4
votes
1answer
3k views

Dynamic Backends with HAProxy

I'm trying to figure out the best way to handle dynamic proxying of HTTP requests. Basically I want to take a dynamic hostname in the form of myname.cust.mydomain.com and then forward requests to an ...
3
votes
2answers
2k views

Free Proxy Servers for Windows OS? [closed]

pretty simple question: anyone know of any free proxy servers for windows? I'm currently using squid (which is great, btw) but it doesn't handle http 1.1. So, anyone know of any other suggestions?
3
votes
2answers
1k views

Why put a reverse proxy in front of a WSGI server?

A typical configuration for deploying a WSGI application includes a WSGI server (such as uWSGI or Gunicorn) behind a general-purpose web server (like nginx) that acts as a reverse proxy. One major ...
3
votes
3answers
923 views

Non-IE browsers wont auto-authenticate

We're considering offering Safari (windows), Chrome, Firefox and Opera as optional browsers in our 2500 person organisation. I'm just testing them out now and where IE auto-authenticates with our ...
2
votes
13answers
14k views

What free options are available for web content filtering? [closed]

I run the IT Dept at a small high school with about 500 users on the network. We have been using SurfControl for this which has been handy because it backs into MS ActiveDirectory very well. We ...
2
votes
1answer
2k views

Stunnel too many clients

I'm trying to hook up stunnel and haproxy to forward https connections through to some backend servers. I've got haproxy setup right, and I seem to have stunnel set up right. Trouble is that when I ...
2
votes
1answer
3k views

IPTABLES: routing VPN users through transparent Squid

I'm hoping someone can help me out - I've been tearing my hair out over this! I have pptpd and squid set up. I want give these users access to the internet, but would like to send http traffic ...
2
votes
3answers
606 views

pop3 caching proxy [closed]

I have a really slow and unreliable internet connection at the office. I also have one email account where many people download mail from the same account without deleting them form the server. (kind ...
1
vote
2answers
3k views

What IP does nginx use for ip_hash sticky sessions?

Does nginx use the direct client's IP for ip_hash, or does it also observe X-forwarded-for HTTP header to use as the IP address to ip_hash? For example, in a situation where some clients using a ...