Re: [squid-users] Rewrite http to https for owa.

2008-04-22 Thread Ben Hollingsworth
Dwyer, Simon wrote:
> One last step to have it fully working is to rewrite address's coming in on
> http to https.  This is for OWA.  I have tried to use squirm and have some
> success.  What I need to do is redirect http://mail.domainname.com/  to
> https://mail.domainname/com/owa.  For all reverse proxy requests.  Is there
> an easier way to do this?  I have googled it without much success.
>   

Here's how I do exactly that.  In squid.conf:

url_rewrite_program /usr/local/bin/rewrite-http

and then:

% cat /usr/local/bin/rewrite-http
#!/usr/bin/perl
#
# URL rewriter for squid to convert HTTP requests to HTTPS.
# Return an HTTP permanent redirect back to the browser.
# http://wiki.squid-cache.org/SquidFaq/SquidRedirectors
#
$| = 1;
while (<>) {
s/^http:/301:https:/;   # replace "http" with "https"
print;
}


-- 
CONFIDENTIALITY NOTICE: This e-mail message,including any
attachments,is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is 
prohibited. If you are not the intended recipient,please
contact the sender by reply e-mail and destroy all copies
of the original message.

begin:vcard
fn:Ben Hollingsworth
n:Hollingsworth;Ben
org:BryanLGH Medical Center;Information Technology
adr:;;1600 S. 48th St.;Lincoln;NE;68506-1275;USA
email;internet:[EMAIL PROTECTED]
title:Systems Programmer
tel;work:402-481-8582
tel;fax:402-481-8354
url:http://www.bryanlgh.org
version:2.1
end:vcard



Re: [squid-users] Rewrite http to https for owa.

2008-04-22 Thread Henrik Nordstrom
tis 2008-04-22 klockan 10:54 +1000 skrev Dwyer, Simon:

> I am starting to really get my squid server under control here :)
> 
> One last step to have it fully working is to rewrite address's coming in on
> http to https.  This is for OWA.

You want to redirect the user to https if he accidently requested http?

Many ways for doing that.. deny_info, url_rewriter, maybe more..

Regards
Henrik



Re: [squid-users] Rewrite http to https for owa.

2008-04-22 Thread Guido Serassio

Hi,

At 02:54 22/04/2008, Dwyer, Simon wrote:

Hey everyone,

I am starting to really get my squid server under control here :)

One last step to have it fully working is to rewrite address's coming in on
http to https.  This is for OWA.  I have tried to use squirm and have some
success.  What I need to do is redirect http://mail.domainname.com/  to
https://mail.domainname/com/owa.  For all reverse proxy requests.  Is there
an easier way to do this?  I have googled it without much success.


I think that this could help you;
http://support.microsoft.com/kb/327800/en-us

But I'm not sure if all the OWA functionality work fine rewriting the 
path of the URL.


Regards

Guido



-

Guido Serassio
Acme Consulting S.r.l. - Microsoft Certified Partner
Via Lucia Savarino, 1   10098 - Rivoli (TO) - ITALY
Tel. : +39.011.9530135  Fax. : +39.011.9781115
Email: [EMAIL PROTECTED]
WWW: http://www.acmeconsulting.it/



Re: [squid-users] Rewrite http to https for owa.

2008-04-21 Thread Amos Jeffries

Dwyer, Simon wrote:

Hey everyone,

I am starting to really get my squid server under control here :)

One last step to have it fully working is to rewrite address's coming in on
http to https.  This is for OWA.  I have tried to use squirm and have some
success.  What I need to do is redirect http://mail.domainname.com/  to
https://mail.domainname/com/owa.  For all reverse proxy requests.  Is there
an easier way to do this?  I have googled it without much success.

Cheers,

Simon


Have you tried this:
http://wiki.squid-cache.org/ConfigExamples/SquidAndOutlookWebAccess

Maybe with a basic http_port listener instead of the https_port.

Amos
--
Please use Squid 2.6.STABLE19 or 3.0.STABLE4


[squid-users] Rewrite http to https for owa.

2008-04-21 Thread Dwyer, Simon
Hey everyone,

I am starting to really get my squid server under control here :)

One last step to have it fully working is to rewrite address's coming in on
http to https.  This is for OWA.  I have tried to use squirm and have some
success.  What I need to do is redirect http://mail.domainname.com/  to
https://mail.domainname/com/owa.  For all reverse proxy requests.  Is there
an easier way to do this?  I have googled it without much success.

Cheers,

Simon