Dan Holliday wrote:
> Hi There.
> 
> I really hope you can help, I've been bashing my head against a brick
> wall for about 3 weeks now and can't seem to quite get squid doing what
> I want.  I know this seems like a long email but please read it all as
> it will explain exactly where I have got to, and what I require.
> 
> This is what my setup is
> 
> I have one external ip address for example we'll say it's 123.345.0.1
> I then have two internal servers, one windows 2003 server (192.168.0.1)
> and one with Ubuntu 8.04 server (192.168.0.2).  I currently run about 15
> website on the windows server and I plan on migrating them over to
> Ubuntu.  However I have come across some problems while trying to set it
> up in a fashion that will be useful to me.
> 
> This is what I want to do... all Internet request come in on
> 123.345.0.1:80, I've got squid setup (on my windows PC listening on port
> 80) as a reverse proxy which is almost working.  I have it so if I go to
> ubuntu.test.co.uk I see the page running with Apache on my Ubuntu server
> at port 81.  If I go to windows.test.co.uk I see the website running
> with IIS on the windows server also at port 81.
> 
> Fantastic so far, this is exactly what I want...  Now my problems start.
> 
> Problem 1
> 
> I currently run outlook webaccess, although I plan on moving over to
> roundcube in the future. When I visit the OWA site webmail.test.co.uk it
> looks as if it's going to work, it starts to load the frames, but then
> falls over....  When I look at the source I see the line  
> 
> <BASE href="http://webmail.test.co.uk:81/exchange/webmaster/>
> 
> Some how the port number 81 has got into the code and been sent back to
> the client.  This is doing my head in, I can't figure out how to get
> round it.
This is a problem with the exchange config I think. You'd be best having 
exchange setup on its normal ports and using cache_peer in squid to do 
the routing in the background.
http://wiki.squid-cache.org/ConfigExamples/SquidAndOutlookWebAccess
> 
> Problem 2
> 
> I run logitech squeeze centre on my windows PC.  This runs on port 9000
> as it has it's own webserver, and on the ubuntu pc I run webmin which
> runs on port 10000 as it also has it's own webserver.  What I want to do
> is configure squid so that if I browse to squeezebox.test.co.uk squid
> goes to 192.168.0.1:9000 if I browse to webmin.test.co.uk squid goes to
> 192.168.0.2:1000 if I browse to windows.test.co.uk squid goes to
> 192.168.0.1:81 and if I browse to ubuntu.test.co.uk squid goes to
> 192.168.0.2:81, but all the time the client pc remains using port 80.
cache_peer yet again. Its really a very powerful tool for routing 
requests to different servers and ports without making any of it visible 
to the users.
Given that you have such a complicated back-end server setup I think you 
will be needing to read over the cache_peer and cache_peer_access and 
ACL config details.
http://www.squid-cache.org/Versions/v2/2.6/cfgman/cache_peer.html
http://www.squid-cache.org/Versions/v2/2.6/cfgman/cache_peer_access.html
http://www.squid-cache.org/Versions/v2/2.6/cfgman/acl.html
and a tutorial on usage:
http://wiki.squid-cache.org/SquidFaq/SquidAcl
(I assume you are using 2.6, since its the most common, for the other 
versions just tweak the URI)
> 
> At the moment I can't get anywhere in solving my two problem... I've
> tried all sorts of examples and read hundred of forums but just haven't
> managed to get these two problems solved. 
> 
> If anyone can help please do as I'm getting very frustrated, and I'm
> sure it can't be that hard, I've probably just been searching under the
> wrong keywords.
> 
> Thanks for reading all this, and hope you can help.
Amos
-- Please use Squid 2.7.STABLE1 or 3.0.STABLE6Received on Wed Jun 11 2008 - 00:31:12 MDT
This archive was generated by hypermail 2.2.0 : Wed Jun 11 2008 - 12:00:05 MDT