Browsing articles tagged with "reverseproxy - 4/22 - Admins Goodies"
Mar 1, 2012
tom

Squid no objects in cache when using http authentication

I’m using squid as a reverse proxy to accelerate access to some remote sites. I have noticed that Squid don’t save objects in cache when the site use http authentication. Is it suppose to be like that. If yes, are there is a way workaround it. Other question dose in reverse proxy configuration of ssl site will save objects in cache? My configuration is Squid 2.6 as reverse proxy, cache_peer … login=PASS Thanks Milutin Asked […]

Continue Reading »
Feb 16, 2012
tom

How to serve MailCatcher behind HTTPS and authentication?

I am developing a Ruby on Rails app, and have a staging server. But this staging server isn’t sending any emails — instead, it is discarding them. In order to test our emails being sent, and how those emails looks like (so we can use the staging server for QA), I found MailCatcher. But currently it is focused on development environment, so there isn’t support for neither HTTPS or authentication — and I don’t want […]

Continue Reading »
Feb 7, 2012
tom

ErrorDocument when using Apache as reverse-proxy

‘evening, I have an Apache server (2.2.19) and a 4D Webstar server (kinda unknown HTTP server) on the same physical server. Apache only listens the SSL port (443) and is used as a reverse-proxy to 4DW (through a SSL VHost). Here are the two proxy directives I use : ProxyPass / http://127.0.0.1:xxxx/ timeout=15 connectiontimeout = 15 ProxyPassReverse / http://127.0.0.1:xxxx/ Given the fact that the 4DW server can go offline from time to time, i’d like […]

Continue Reading »
Feb 6, 2012
tom

Infinite redirect with WordPress proxied from Apache

We’re trying to setup Apache on a public server to proxy requests to Apache with WordPress on another server, but we’re getting infinite redirect loops. Requests starting with www.example.com/about should get proxied to the internal server wp.example.corp. e.g. www.example.com/about/about/team => proxy => wp.example.corp/about/team To further complicate matters, our WordPress installation is in a subdirectory called “wp”. So, on the WordPress server, we have the following settings: WordPress Address: http://www.example.com/about/wp Site Address: http://www.example.com/about Here are some […]

Continue Reading »
Feb 5, 2012
tom

Simple Apache2 Reverse Proxy config not working

I’ve installed Apache2 on 2 ubuntu 11.10 VMs and I am trying to get a very basic Reverse Proxy working. I have nothing but the default site setup on each. I want to go to http://server.com/app and have it return http://app.internal.server.com/. From what I have read it should all be fairly straight forward, but I have no experience with Apache so I am probably missing something! For example, I haven’t set up anything on Apache […]

Continue Reading »
Feb 5, 2012
tom

How to send authentication credentials to a published web site without prepending the AD domain name?

ISA Server 2006 publishing a web site; ISA does forms-based authentication against an Active Directory domain (which ISA itself is joined to), then, if the user is authorized, ISA sends the user’s credentials to the published web site using HTTP authentication. The problem: the credentials sent to the published web site are in the format “DOMAIN\UserName”, while the web site expects them to contain the user name only. Before we ask the developers to modify […]

Continue Reading »
Feb 3, 2012
tom

Nginx to proxy to Apache

I’m trying to setup Nginx as a reverse proxy to Apache for a site running locally on :8080 and externally accesible via lessico.pistacchioso.com. The current configuration leads to a 502 – Bad Gateway error. #/etc/apache2/ports.conf Listen 127.0.0.1:8080 <IfModule mod_ssl.c> # If you add NameVirtualHost *:443 here, you will also have to change # the VirtualHost statement in /etc/apache2/sites-available/default-ssl # to <VirtualHost *:443> # Server Name Indication for SSL named virtual hosts is currently not # […]

Continue Reading »
Feb 2, 2012
tom

how do reverse proxies know which content is static?

I was looking at the setup of reverse proxies, like nginx in front of apache, to reduce load on webservers for serving static content. For any given URL, our web pages will have different parts static and dynamic. How do reverse proxies know when to serve resources themselves, or pull it from the source web server behind them? Obviously things like images and javascript files are static, but even some of those, like captchas, are […]

Continue Reading »
Jan 26, 2012
tom

Nginx, redirecting a location block to another

For uri’s starting with /c/ , I want to do a memcached key test, and return the key’s value if exists. If there is no key, it should pass it to proxy. I do it with this directive: location ^~ /c/ { set $memcached_key “prefix:$request_uri”; memcached_pass 127.0.0.1:11211; default_type application/json; error_page 404 405 502 = @proxy } For all other requests, I want them to pass to the same proxy. I do it with the directive […]

Continue Reading »
Jan 24, 2012
tom

How can I protect a Tomcat webapp that’s reverse proxied in an Apache2 virtual host using basic authentication?

I’m having trouble figuring out how to adding basic HTTP authentication to password-protect a development testing environment running on a production web server. Both the main site and the testing environment are virtual hosts that use AJP proxying to serve separate instances of Tomcat webapps. We need to prevent the public from accessing the testing environment without making changes to web.xml in the Tomcat environment the protection must be achieved with Apache not Tomcat. However […]

Continue Reading »
Pages:«1234567...22»