Re: [squid-users] URL rewrite and POST body

2013-11-06 Thread Amos Jeffries
On 6/11/2013 12:37 p.m., WorkingMan wrote: 1) Is the POST body request preserved when using url_rewrite_program? Based on my test it seems to be lost. If it's lost is it easy to modify SQUID to preserve that (or maybe an option to enable that)? It should be preserved. Only headers portion shoul

[squid-users] URL rewrite and POST body

2013-11-06 Thread WorkingMan
1) Is the POST body request preserved when using url_rewrite_program? Based on my test it seems to be lost. If it's lost is it easy to modify SQUID to preserve that (or maybe an option to enable that)? 2) Can URL be rewritten in content adaptation like eCAP (or ICAP)? Just wondering. 3) what i

[squid-users] URL rewrite and POST body

2013-11-06 Thread WorkingMan
1) Is the POST body request preserved when using url_rewrite_program? Based on my test it seems to be lost. If it's lost is it easy to modify SQUID to preserve that (or maybe an option to enable that)? 2) Can URL be rewritten in content adaptation like eCAP (or ICAP)? Just wondering. 3) what i

Re: [squid-users] URL rewrite on Squid 3.1.6 as ReverseProxy for Exchange OWA

2012-02-24 Thread Amos Jeffries
On 24/02/2012 11:52 a.m., Roman Gelfand wrote: Hi Amos, I could be wrong, but I understood from your several posts that this type of configuration is not recommended (either due to security issues or performance, I don't remember exactly). Is that right? *redirect*, (using deny_info or redire

Re: [squid-users] URL rewrite on Squid 3.1.6 as ReverseProxy for Exchange OWA

2012-02-23 Thread Roman Gelfand
Hi Amos, I could be wrong, but I understood from your several posts that this type of configuration is not recommended (either due to security issues or performance, I don't remember exactly). Is that right? Thanks, On Tue, Feb 21, 2012 at 7:29 AM, Amos Jeffries wrote: > On 21/02/2012 11:21 p.

Re: [squid-users] URL rewrite on Squid 3.1.6 as ReverseProxy for Exchange OWA

2012-02-21 Thread Fried Wil
On Wed, Feb 22, 2012 at 01:29:33AM +1300, Amos Jeffries wrote: > On 21/02/2012 11:21 p.m., Fried Wil wrote: > >On Tue, Feb 21, 2012 at 12:26:11PM +1300, Amos Jeffries wrote: > >I have this error on my access.log > >1329819182.985 0 CLIENT_IP TCP_DENIED/302 340 GET > >https://webmail.domain.foo

Re: [squid-users] URL rewrite on Squid 3.1.6 as ReverseProxy for Exchange OWA

2012-02-21 Thread Amos Jeffries
On 21/02/2012 11:21 p.m., Fried Wil wrote: On Tue, Feb 21, 2012 at 12:26:11PM +1300, Amos Jeffries wrote: I have this error on my access.log 1329819182.985 0 CLIENT_IP TCP_DENIED/302 340 GET https://webmail.domain.foo/ - NONE/- text/html 1329819183.011 0 CLIENT_IP TCP_MISS/404 1530 GET

Re: [squid-users] URL rewrite on Squid 3.1.6 as ReverseProxy for Exchange OWA

2012-02-21 Thread Fried Wil
On Tue, Feb 21, 2012 at 12:26:11PM +1300, Amos Jeffries wrote: > - Proper HTTP *redirect* using 3xx status messages should work fine. > But Squid needs to be configured to handle both the before and after > URL when received from the client. Exchange only needs to handle the > "after" URI. > > >

Re: [squid-users] URL rewrite on Squid 3.1.6 as ReverseProxy for Exchange OWA

2012-02-21 Thread Fried Wil
Hi Amos, Thanks for your very good explaination. I wanna to specify all i want to need : https://webmail.domain.foo/ --> https://EXCHANGE_IP/owa/ https://webmail.domain.foo/owa/ --> https://EXCHANGE_IP/owa/ https://webmail.domain.foo/rpc/ --> https://EXCHANGE_IP/rpc/ https://webmail.domain.foo/

Re: [squid-users] URL rewrite on Squid 3.1.6 as ReverseProxy for Exchange OWA

2012-02-20 Thread Amos Jeffries
On 21.02.2012 11:15, Marcus Kool wrote: For HTTP is receives the full URL but for HTTPS it only receives the domainname. No. This is reverse-proxy. The full request details are available. Amos

Re: [squid-users] URL rewrite on Squid 3.1.6 as ReverseProxy for Exchange OWA

2012-02-20 Thread Amos Jeffries
On 21.02.2012 04:59, Fried Wil wrote: Hello Guys, I'have a problem with a Squid 3.1.6 as reverse proxy for an exchange usage ... (rpc not compatible with apache2). I would like to redirect the "/" to "/owa". How can i do that ? thx guys Um. I've started with a bit of a side-track some maj

Re: [squid-users] URL rewrite on Squid 3.1.6 as ReverseProxy for Exchange OWA

2012-02-20 Thread Marcus Kool
For HTTP is receives the full URL but for HTTPS it only receives the domainname. The URL rewriter feature was designed to rewrite HTTP-based URLs and cannot rewrite HTTPS-URLs. Marcus Fried Wil wrote: Hi Guys, Thx @Eliezer for reply. I know redirection page, thx :), but i want to use squidg

Re: [squid-users] URL rewrite on Squid 3.1.6 as ReverseProxy for Exchange OWA

2012-02-20 Thread Fried Wil
Hi Guys, Thx @Eliezer for reply. I know redirection page, thx :), but i want to use squidguard as redirector by rewriterule or redirector program, is it possible to process as this ? Thx in advance. Regards, Wilfried On Mon, Feb 20, 2012 at 08:08:06PM +0200, Eliezer Croitoru wrote: > On 20/0

Re: [squid-users] URL rewrite on Squid 3.1.6 as ReverseProxy for Exchange OWA

2012-02-20 Thread Eliezer Croitoru
On 20/02/2012 17:59, Fried Wil wrote: the simple way is to use a redirection page on the ows web server. change the index.html page on the "/" . some sources for that: http://www.web-source.net/html_redirect.htm http://www.quackit.com/html/html_redirect.cfm http://billstclair.com/html-redirect2.ht

[squid-users] URL rewrite on Squid 3.1.6 as ReverseProxy for Exchange OWA

2012-02-20 Thread Fried Wil
Hello Guys, I'have a problem with a Squid 3.1.6 as reverse proxy for an exchange usage ... (rpc not compatible with apache2). I would like to redirect the "/" to "/owa". How can i do that ? thx guys This is my configuration of squid.conf just for OWA Access. $ https_port SQUID_IP:443 accel cer

Re: [squid-users] url rewrite

2010-08-05 Thread John Doe
From: John Doe > From: senthilkumaar2021 > > Is there any possibility to pass urlpath rewritten urls to particular > >cache_peer in reverse proxy > > The urlpath rewritten is done using perl script .only path in url is re > >written > > Three identical web servers are running at differen

Re: [squid-users] url rewrite

2010-08-05 Thread John Doe
From: senthilkumaar2021 > Is there any possibility to pass urlpath rewritten urls to particular >cache_peer in reverse proxy > The urlpath rewritten is done using perl script .only path in url is re >written > Three identical web servers are running at different ip and the url path is >rewr

[squid-users] url rewrite

2010-08-04 Thread senthilkumaar2021
Hi Is there any possibility to pass urlpath rewritten urls to particular cache_peer in reverse proxy The urlpath rewritten is done using perl script .only path in url is re written Three identical web servers are running at different ip and the url path is rewritten for some requests only

Re: [squid-users] url-rewrite & digest authentication not working together

2010-07-17 Thread Henrik Nordström
ons 2010-07-14 klockan 12:07 -0700 skrev Mike Melson: > Digest authentication fails because the uri= in the > Authorization header isn't rewritten & so it doesn't match the POST > URI created by url-rewrite-program. Is there a way to also rewrite the > uri string in the Authorization header before

Re: [squid-users] url-rewrite & digest authentication not working together

2010-07-14 Thread Amos Jeffries
On Wed, 14 Jul 2010 12:07:45 -0700 (PDT), Mike Melson wrote: > Hi - > > I'm having trouble using squid plus a url-rewrite-program as a reverse > proxy to a system that requires digest authentication. > > Digest authentication fails because the uri= in the Authorization > header isn't rewritten

[squid-users] url-rewrite & digest authentication not working together

2010-07-14 Thread Mike Melson
Hi - I'm having trouble using squid plus a url-rewrite-program as a reverse proxy to a system that requires digest authentication. Digest authentication fails because the uri= in the Authorization header isn't rewritten & so it doesn't match the POST URI created by url-rewrite-program. Is th

Re: [squid-users] url-rewrite PHP script issue under Ubuntu 10.04

2010-06-03 Thread Nyamul Hassan
That was a good find! Amos, does that indeed help? It would be nice to know. Regards HASSAN On Tue, Jun 1, 2010 at 03:10, Horacio H. wrote: > > Hi! > > Thanks Alexandre and Amos for your replies, together they pointed me > into the right direction! > > Based on the the URLs sent by Alexandre

Re: [squid-users] url-rewrite PHP script issue under Ubuntu 10.04

2010-05-31 Thread Horacio H.
Hi! Thanks Alexandre and Amos for your replies, together they pointed me into the right direction! Based on the the URLs sent by Alexandre, I edited the "/etc/php5/cli/php.ini" file and tested different values for "max_execution_time" and "max_input_time" but none changed the PHP's script behavio

Re: [squid-users] url-rewrite PHP script issue under Ubuntu 10.04

2010-05-25 Thread Amos Jeffries
On Tue, 25 May 2010 18:49:16 -0500, "Horacio H." wrote: > Hi ! > > I was wondering if someone else has noticed a similar behavior: > > I wrote an URL-rewrite script with PHP as explained at > . The > script was running without complains

[squid-users] url-rewrite PHP script issue under Ubuntu 10.04

2010-05-25 Thread Horacio H.
Hi ! I was wondering if someone else has noticed a similar behavior: I wrote an URL-rewrite script with PHP as explained at . The script was running without complains under Squid 2.7.Stable9 and Ubuntu 9.04, then I upgraded Ubuntu to 10.0

Re: [squid-users] URL rewrite Help

2009-08-31 Thread Henrik Nordstrom
mån 2009-08-31 klockan 09:21 -0700 skrev Trevor Merrill: > I am currently testing squid in a reverse proxy configuration with JBoss > Portal backend servers. My goal is to phase out Apache and mod_proxy and > gain some speed with squid. I have a basic reverse proxy configuration > working for ww

Re: [squid-users] URL rewrite Help

2009-08-31 Thread Youenn Boussard
Hello, You can try this in your squid.conf : url_rewrite_program iRedirector.py url_rewrite_children 1 url_rewrite_concurrency 20 url_rewrite_host_header off Get and customize this files (this is template file ) https://ingeniweb.svn.sourceforge.net/svnroot/ingeniweb/iw.recipe.squid/trunk/iw/rec

[squid-users] URL rewrite Help

2009-08-31 Thread Trevor Merrill
I am currently testing squid in a reverse proxy configuration with JBoss Portal backend servers. My goal is to phase out Apache and mod_proxy and gain some speed with squid. I have a basic reverse proxy configuration working for www.mydomain.com but I need to try and duplicate the following in

Re: [squid-users] URL Rewrite

2009-03-04 Thread Chris Robertson
howard chen wrote: Hi, On Wed, Mar 4, 2009 at 4:30 AM, Chris Robertson wrote: See the "forceddomain" argument to cache_peer. http://www.squid-cache.org/Doc/config/cache_peer/ Is it possible to force into an URL? e.g. *.example.com/* => http://www.google.com/aboutus I don't thi

Re: [squid-users] URL Rewrite

2009-03-04 Thread howard chen
Hi, On Wed, Mar 4, 2009 at 4:30 AM, Chris Robertson wrote: > See the "forceddomain" argument to cache_peer. > http://www.squid-cache.org/Doc/config/cache_peer/ Is it possible to force into an URL? e.g. *.example.com/* => http://www.google.com/aboutus

Re: [squid-users] URL Rewrite

2009-03-03 Thread Chris Robertson
howard chen wrote: Hi Currently I am using dstdomain/cache_peer to rewrite url request from client to backend apache (so squid act as a reverse proxy) e.g. acl dstdomain_site dstdomain .example.com cache_peer 192.168.11.123 p

[squid-users] URL Rewrite

2009-03-03 Thread howard chen
Hi Currently I am using dstdomain/cache_peer to rewrite url request from client to backend apache (so squid act as a reverse proxy) e.g. acl dstdomain_site dstdomain .example.com cache_peer 192.168.11.123 parent 80 0 no-query o

Re: [squid-users] Url Rewrite

2007-12-04 Thread Amos Jeffries
Almered Niklas wrote: Hi! We're trying to configure a Squid 2.6 stable 16 with two servers, a webserver with Linux and Apache and a web mapping server with Windows and IIS. A: application.example.com (Apache webserver on port 8081) B: map.example.com (IIS web mapping server o port 80) Now, Squ

[squid-users] Url Rewrite

2007-12-03 Thread Almered Niklas
Hi! We're trying to configure a Squid 2.6 stable 16 with two servers, a webserver with Linux and Apache and a web mapping server with Windows and IIS. A: application.example.com (Apache webserver on port 8081) B: map.example.com (IIS web mapping server o port 80) Now, Squid is installed om the

Re: [squid-users] url rewrite and cache, which URL should be cached?

2007-10-15 Thread Henrik Nordstrom
On ons, 2007-10-10 at 10:20 +0200, Sylvain Viart wrote: > the redirector returns: > echo "http://mes-test2.mydomain.com/js/mailbox.js"; | perl t.pl > !php! http://static-php/js/mailbox.js There should be no space between the urlgroup tag and the URL. Anything after the first space is ignored by

Re: [squid-users] url rewrite and cache, which URL should be cached?

2007-10-10 Thread Sylvain Viart
Hi, Found: Could it be associated with the urlgroup which somewhat hides the rewriting? Yes it is ! snip of the redirector, squid.conf unmodified while (<>) { # filer rewriting not modified if(m[^http://$filer_host/] || m[^http://([^/]+)/(js/static_file|media|thumb)])

Re: [squid-users] url rewrite and cache, which URL should be cached?

2007-10-10 Thread Sylvain Viart
Hi Henrik, Henrik Nordstrom a écrit : On tis, 2007-10-09 at 17:47 +0200, Sylvain Viart wrote: Hi, I use a redirector on an accel proxy config. url_rewrite_program /etc/squid/redirector.pl url_rewrite_children 15 url_rewrite_concurrency 0 url_rewrite_host_header off It seems, that the url

Re: [squid-users] url rewrite and cache, which URL should be cached?

2007-10-09 Thread Henrik Nordstrom
On tis, 2007-10-09 at 17:47 +0200, Sylvain Viart wrote: > Hi, > > I use a redirector on an accel proxy config. > > url_rewrite_program /etc/squid/redirector.pl > url_rewrite_children 15 > url_rewrite_concurrency 0 > url_rewrite_host_header off > > > It seems, that the url used to store the requ

Re: [squid-users] url rewrite and cache, which URL should be cached?

2007-10-09 Thread Adrian Chadd
On Tue, Oct 09, 2007, Sylvain Viart wrote: > Hi, > > I use a redirector on an accel proxy config. > > url_rewrite_program /etc/squid/redirector.pl > url_rewrite_children 15 > url_rewrite_concurrency 0 > url_rewrite_host_header off > > > It seems, that the url used to store the requested url is

[squid-users] url rewrite and cache, which URL should be cached?

2007-10-09 Thread Sylvain Viart
Hi, I use a redirector on an accel proxy config. url_rewrite_program /etc/squid/redirector.pl url_rewrite_children 15 url_rewrite_concurrency 0 url_rewrite_host_header off It seems, that the url used to store the requested url is the orginal url, not the rewrited on. I would like to store th

Re: [squid-users] url rewrite problem

2007-10-02 Thread Amos Jeffries
Srinivas B wrote: Hi All, is there any way I can redirect urls that are replaced by accelerated mode. I have something like http_port 8080 accel defaultsite=mysite.com Requests are replaced by host=mysite.com. I want to redirect some url based on original request (depending upon hostname). I

Re: [squid-users] url rewrite problem

2007-10-02 Thread Keshava M P
you have to use a redirector and you have to include the url_rewrite_program and related directives in squid.conf. typicallly, url_rewrite_program=/path/to/yourredirectprogram/ url_rewrite_children=5 url_rewrite_concurrency=5 url_rewrite_host_header off Either you define the entries of internal ho

[squid-users] url rewrite problem

2007-10-01 Thread Srinivas B
Hi All, is there any way I can redirect urls that are replaced by accelerated mode. I have something like http_port 8080 accel defaultsite=mysite.com Requests are replaced by host=mysite.com. I want to redirect some url based on original request (depending upon hostname). I have tried vhost op