Re: [squid-users] Fwd: Url redirection to ip

2008-07-17 Thread Michael Alger
On Wed, Jul 16, 2008 at 08:37:49PM -0400, jason bronson wrote: hmm well i've been trying to debug this it's weird if thiers a 404 it traverses through out the next several requests example notice this request was ok directly to the image 1216254753.708286 10.108.3.22 TCP_REFRESH_HIT/304

Re: [squid-users] Fwd: Url redirection to ip

2008-07-17 Thread Henrik Nordstrom
On ons, 2008-07-16 at 20:37 -0400, jason bronson wrote: Images wont use the /loginuat/ like the rest? weird? Check your HTML. Regards Henrik

Re: [squid-users] Fwd: Url redirection to ip

2008-07-17 Thread jason bronson
Yup your always on to it. it was a change from /images/ to ./images/ On Thu, Jul 17, 2008 at 4:39 AM, Henrik Nordstrom [EMAIL PROTECTED] wrote: On ons, 2008-07-16 at 20:37 -0400, jason bronson wrote: Images wont use the /loginuat/ like the rest? weird? Check your HTML. Regards

Re: [squid-users] Fwd: Url redirection to ip

2008-07-16 Thread jason bronson
Mike I've tried your setup like this im getting a 1216213753.567 20 61.133.70.7 TCP_NEGATIVE_HIT/404 1345 GET http://10.108.50.33/main_dev.php/ - NONE/- text/html but a wget WORKS? wget http://10.108.50.33/main_dev.php/ --09:10:23-- http://10.108.50.33/main_dev.php/ Connecting to

Re: [squid-users] Fwd: Url redirection to ip

2008-07-16 Thread Henrik Nordstrom
ons 2008-07-16 klockan 09:08 -0400 skrev jason bronson: Mike I've tried your setup like this im getting a 1216213753.567 20 61.133.70.7 TCP_NEGATIVE_HIT/404 1345 GET http://10.108.50.33/main_dev.php/ - NONE/- text/html Please set negative_ttl 0 seconds until you have a working

Re: [squid-users] Fwd: Url redirection to ip

2008-07-16 Thread Henrik Nordstrom
On ons, 2008-07-16 at 13:23 -0400, jason bronson wrote: ok I did that and im getting still 1216229053.744 3 61.133.70.7 TCP_MISS/404 1334 GET http://10.108.50.33/repairdata_dev.php - FIRST_UP_PARENT/10.108.50.37 text/html Thats very different from the TCP_NEGATIVE_HIT.. unless im

Re: [squid-users] Fwd: Url redirection to ip

2008-07-16 Thread jason bronson
could you give me an example? On Tue, Jul 15, 2008 at 2:55 PM, Henrik Nordstrom [EMAIL PROTECTED] wrote: On mån, 2008-07-14 at 16:31 -0400, jason bronson wrote: Is it possible to redirect based on a URL path in squid example I have 63.45.45.45/login/test 63.45.45.45/login/new

Re: [squid-users] Fwd: Url redirection to ip

2008-07-16 Thread Henrik Nordstrom
acl new urlpath_regex ^/login/new acl test urlpath_regex ^/login/test cache_peer_access server_a allow test cache_peer_access server_b allow new or alternatively cache_peer_access server_a deny new cache_peer_access server_b allow new Regards Henrik On ons, 2008-07-16 at 14:58 -0400, jason

Re: [squid-users] Fwd: Url redirection to ip

2008-07-16 Thread jason bronson
im using this 1567 acl new urlpath_regex ^/data.php 1568 acl test urlpath_regex ^/data_dev.php 1569 1570 cache_peer_access 10.108.50.32 allow test 1571 cache_peer_access 10.108.50.33 allow new 1572 1573 1574 cache_peer 10.108.50.33 parent 80 0 name=uat no-query

Re: [squid-users] Fwd: Url redirection to ip

2008-07-16 Thread jason bronson
I was able to correct the errors and reloaded the config...but Basically its just hitting the default site for accelerator mode and not hitting the servers through acl as i told it to do? if i access either data.php or data_dev.php they both hit the same default site which is .33 On Wed, Jul

Re: [squid-users] Fwd: Url redirection to ip

2008-07-16 Thread Henrik Nordstrom
On ons, 2008-07-16 at 15:16 -0400, jason bronson wrote: im using this 1567 acl new urlpath_regex ^/data.php 1568 acl test urlpath_regex ^/data_dev.php 1569 1570 cache_peer_access 10.108.50.32 allow test 1571 cache_peer_access 10.108.50.33 allow new 1572 1573 1574

Re: [squid-users] Fwd: Url redirection to ip

2008-07-16 Thread jason bronson
Ok Henrik explain this to me please I now got it working on 2.7 squid So if i hit repairdata.php it goes to my uatbox if i hit index.htm it goes to admin if I hit just main url it goes to mybox What confuses me is the last line below if i change the last line to say : cache_peer_access

Re: [squid-users] Fwd: Url redirection to ip

2008-07-16 Thread Henrik Nordstrom
ons 2008-07-16 klockan 17:31 -0400 skrev jason bronson: So if i hit repairdata.php it goes to my uatbox if i hit index.htm it goes to admin if I hit just main url it goes to mybox What confuses me is the last line below if i change the last line to say : cache_peer_access mybox

Re: [squid-users] Fwd: Url redirection to ip

2008-07-16 Thread jason bronson
Thanks that works and makes more sense ! i ended up adding this line also to turn on accel mode just to make this support list complete http_port 80 accel defaultsite=10.108.111.181 On Wed, Jul 16, 2008 at 6:19 PM, Henrik Nordstrom [EMAIL PROTECTED] wrote: ons 2008-07-16 klockan 17:31 -0400

Re: [squid-users] Fwd: Url redirection to ip

2008-07-16 Thread jason bronson
hmm well i've been trying to debug this it's weird if thiers a 404 it traverses through out the next several requests example notice this request was ok directly to the image 1216254753.708286 10.108.3.22 TCP_REFRESH_HIT/304 235 GET http://10.108.111.181/loginuat/images/header_rightcorner.jpg

Re: [squid-users] Fwd: Url redirection to ip

2008-07-15 Thread jason bronson
Thanks Michael heres how i did setup and i get a error squid -k parse 2008/07/15 08:51:10| ACL name 'all' not defined! FATAL: Bungled squid.conf line 569: cache_peer_access test deny all Squid Cache (Version 2.6.STABLE6): Terminated abnormally. cache_peer 10.108.50.33 parent 80 0 name=uat

Re: [squid-users] Fwd: Url redirection to ip

2008-07-15 Thread John Doe
Thanks Michael heres how i did setup and i get a error squid -k parse 2008/07/15 08:51:10| ACL name 'all' not defined! FATAL: Bungled squid.conf line 569: cache_peer_access test deny all Squid Cache (Version 2.6.STABLE6): Terminated abnormally. As it is said, 'all' not defined. If you did

Re: [squid-users] Fwd: Url redirection to ip

2008-07-15 Thread Henrik Nordstrom
On mån, 2008-07-14 at 16:31 -0400, jason bronson wrote: Is it possible to redirect based on a URL path in squid example I have 63.45.45.45/login/test 63.45.45.45/login/new 63.45.45.45/login/test -- 10.108.111.34 63.45.45.45/login/new -- 10.108.18.254 Yes, by using url_regex acls in

[squid-users] Fwd: Url redirection to ip

2008-07-14 Thread jason bronson
Is it possible to redirect based on a URL path in squid example I have 63.45.45.45/login/test 63.45.45.45/login/new 63.45.45.45/login/test -- 10.108.111.34 63.45.45.45/login/new -- 10.108.18.254 So I want to redirect squid's call based upon its external path being seen then send to the

Re: [squid-users] Fwd: Url redirection to ip

2008-07-14 Thread Michael Alger
On Mon, Jul 14, 2008 at 04:31:35PM -0400, jason bronson wrote: Is it possible to redirect based on a URL path in squid example I have 63.45.45.45/login/test 63.45.45.45/login/new 63.45.45.45/login/test -- 10.108.111.34 63.45.45.45/login/new -- 10.108.18.254 So I want to redirect