[squid-users] Hi, I am currenty trying out squid 3.0 in accelerator mode and have a few questions about redirecting url and url-paths...

From: Anders Westerberg <anders.westerberg@dont-contact.us>
Date: Sat, 22 May 2004 21:30:45 +0200

Hi, as the sub says, I am currenty trying out squid 3.0 in accelerator
mode and have a few questions about redirecting url and url-paths...

The setup im trying to achieve is using squid as a front end server for
several back end servers. The optimal would be to have one url with
url-paths for all the backend servers.

This is the setup I am using today which works just fine.

http_port xx.xx.xx.xx:80 vhost defaultsite=www.domain.com
https_port xx.xx.xx.xx:443 cert=somecert.pem vhost
defaultsite=webapp1.domain.com

cache_peer 192.168.1.10 parent 80 0 originserver no-query no-digest
proxy-only
cache_peer 192.168.1.11 parent 80 0 originserver no-query no-digest
proxy-only
cache_peer 192.168.1.12 parent 80 0 originserver no-query no-digest
proxy-only
cache_peer 192.168.1.13 parent 80 0 originserver no-query no-digest
proxy-only

cache_peer_domain 192.168.1.10 www.domain.com domain.com www3.domain.com
cache_peer_domain 192.168.1.11 webapp1.domain.com
cache_peer_domain 192.168.1.12 www2.domain.com
cache_peer_domain 192.168.1.13 webapp2.domain.com someapp.domain.com

This works just fine but I have to have several different hostnames
presented to the users. So if someone wants to access a special
application on say webapp2.domain.com they would have to remember what
server that application runs on, ie webapp1.molndal.se/app1, I would
like to do something like this:

webapp.domain.com/app1 redirects to webapp1.domain.com/app1
webapp.domain.com/app2 redirects to webapp2.domain.com/app2
webapp.domain.com/app3 redirects to webapp1.domain.com/app3

I could set up a web site that listens on webapp.domain.com with all
url-paths and redirect them with meta tags there but is seems like an
ugly solution.

Is this possible with squid 3.0 or do I have to use some kind of
redirector software? It would have been sweet if I could just have used
something like:

cache_peer_domain 192.168.1.11 webapp1.domain.com webapp.domain.com/app1
cache_peer_domain 192.168.1.13 webapp2.domain.com webapp.domain.com/app2

But that does not work of course ;), it can never be easy.

Any information would be appreciated.

/anders
Received on Sat May 22 2004 - 13:30:44 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Jun 01 2004 - 12:00:02 MDT