Browsing articles tagged with "reverseproxy - 7/22 - Admins Goodies"
Oct 4, 2011
tom

Carrying cookies across redirects when using Apache as a reverse proxy

I’m attempting to setup a reverse proxy using Apache on my local machine, I have the following in my httpd.conf: ProxyPass /app http://x.com ProxyPassReverse /app http://x.com Everything works great and browsing to 127.0.0.1/app/* works as expected. The problem arises when I browse to a url that performs a redirect to a resource at the same hostname but a different port. Initially I thought I could handle this situation as follows: ProxyPass /app:81 http://x.com:81 ProxyPassReverse /app:81 […]

Continue Reading »
Sep 28, 2011
tom

IIS 7 Reverse Proxy based on domain name host?

How would I configure IIS 7.0′s ARR and URL Rewrite to reverse proxy based on a host. For example: http://website1.mydomain.com gets routed internally to internalserverwebsite1http://website2.mydomain.com gets routed internally to internalserver2website2http://website3.mydomain.com gets routed internally to internalserver2 (default website) FYI – The public DNS website1.mydomain.com and the rest are all actually pointing to the public IP of mydomain.com. Note that this is not all the same server. There are multiple web servers INSIDE the firewall and one […]

Continue Reading »
Sep 27, 2011
tom

apache2 mod_proxy without 301 moved permanently?

Is it possible to not send a 301 moved permanently response to the client when using mod_proxy? I would like the client to deal with the reverse proxy as opaquely as possible. My Virtual Host Settings- relevant snippet ProxyPreserveHost On ProxyPass /GTM http://192.168.1.27/GTM ProxyPassReverse /GTM http://192.168.1.27/GTM wget localhost/GTM –2011-09-27 21:54:22– localhost/GTM Resolving localhost… ::1, 127.0.0.1 Connecting to localhost|::1|:80… failed: Connection refused. Connecting to localhost|127.0.0.1|:80… connected. HTTP request sent, awaiting response… 301 Moved Permanently Location: localhost/GTM/ […]

Continue Reading »
Sep 26, 2011
tom

Nginx reverse proxy: Not setting expires header

I have my static assets configured as location @upstream { proxy_pass http://localhost:82; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location ~* .(js|css|png|jpg|jpeg|gif|ico)$ { try_files $uri @upstream; access_log off; expires max; add_header Cache-Control public; } The expires max is not respected. I think its respecting the incoming server header. How can modify this to set expires header? Nginx only ever applies one location, never more. In your example it will apply the expires […]

Continue Reading »
Sep 13, 2011
tom

IIS 7 Reverse Proxy & HTTP 301 Redirects

I’m trying to setup a reverse proxy for my website. Basically, I have an external site example.com/site/folder that needs to reverse proxy to some internal VMs. Here’s a little background All machines run Server 2008 (Standard) 1 machine (the reverse proxy server.example.com) has an external IP Several other internal VMs run IIS 7 and Server 2008 I’ve got the reverse proxy working and I can successfully send requests matching example.com/site/folder/ over to site-internal.example.com/folder/ However I’m […]

Continue Reading »
Aug 25, 2011
tom

Varnish versus other reverse proxies

I’m working with an organisation that has deployed Varnish as a caching reverse proxy for all of their web traffic. Their traffic make up is a lot of customer-generated dynamic websites, with the usual collection of static assets hanging off the side. While I’m trying to like varnish (I think it has a pretty good architecture, in principle), I’m having some troubles managing it and troubleshooting problems as they arise, so I’m wondering if it’s […]

Continue Reading »
Aug 25, 2011
tom

Tools for introspecting Varnish

Has anyone developed, or does anyone know of, any third-party tools (or non-obvious uses of the stock tools) to help a poor systems administrator determine what’s going on with requests that are passing through Varnish? While varnishstat, varnishtop, and varnishhist give me either very high-level (or low-level) overviews, I’m looking for something that tells me things like: What requests are currently in progress (and how long they’ve been like that, where they got sent, that […]

Continue Reading »
Aug 25, 2011
tom

Reverse proxy for HTTP acceleration

I provide hosting facilities for a high traffic website that will receive a spike in traffic in the next 2 months. In order to allow more it to perform better, I want to prepare myself and put a frontend server acting as a reverse proxy and direct traffic through it. What reverse proxy do you suggest I use? I’ve used Apache mod_proxy in the past with some good results, but is there something more performant […]

Continue Reading »
Aug 25, 2011
tom

Apache reverse proxy for IIS

I would like to know what are the options for using Apache’s HTTP server as a reverse proxy for IIS7 (serving ASP.NET content under 3.5 .NET Framework). For JBoss/Tomcat or any other Java Application Server, I will use MOD_JK, but I would like to know what are your experiences with IIS7. What connectors are there available (if any) and what are the pros and cons of each one. Thanks a lot. Great site! Just use […]

Continue Reading »
Aug 24, 2011
tom

What is a Reverse Proxy?

I know what a proxy is, but I’m not sure what a reverse proxy is. It seems to me that it’s probably akin to a load balancer. Is that correct? A reverse proxy, also known as an “inbound” proxy is a server that receives requests from the Internet and forwards (proxies) them to a small set of servers, usually located on an internal network and not directly accessible from outside. It’s “reverse”, because a traditional […]

Continue Reading »