> -----Original Message----- > From: Anil Dighade [mailto:danil@xxxxxxxxxxxxxxxx] > Sent: Tuesday, June 20, 2006 11:44 AM > To: users@xxxxxxxxxxxxxxxx > Subject: RE: [users@httpd] Switching between HTTP and HTTPS > > > Owen, > I tried with all the flags [L],[R] and [P] still no success. > Possible reason could be that "\bas\" is not a apache folder. > Its bas.war > file at another application server (Bea Weblogic). Where my > apache's reverse > proxy is redirecting. At the moment you have two complicated sources of error and you can't tell which is responsible. So, attack the problem in stages; - setup some test URLs that are plain URLs on the apache server (ie, remove the proxy server from the setup) - get the RewriteRule working with those It's impossible to guess what's happening when you start out with a very complicated set-up and try to get everything working at once. Guessing anyway, I'd say your rewrite rule is coming after the proxypass and so the request gets passed to the proxy before it hits the RW rule. Rgds, Owen Boyle Disclaimer: Any disclaimer attached to this message may be ignored. > See my virtual host proxy setting below. > > <IfModule mod_proxy.c> > ProxyRequests off > <Proxy *> > order deny,allow > Allow from all > </Proxy> > ProxyBadHeader Ignore > ProxyPass /bas/ http://172.24.226.59:7001/bas/ > ProxyPassReverse /bas/ http://172.24.226.59:7001/bas/ > </IfModule> > > Any clue most welcome!!! > > Regards, > Anil D > > -----Original Message----- > From: Boyle Owen [mailto:Owen.Boyle@xxxxxxx] > Sent: Tuesday, June 20, 2006 2:19 PM > To: users@xxxxxxxxxxxxxxxx > Subject: RE: [users@httpd] Switching between HTTP and HTTPS > > > -----Original Message----- > > From: Anil Dighade [mailto:danil@xxxxxxxxxxxxxxxx] > > Sent: Tuesday, June 20, 2006 10:28 AMdanil@xxxxxxxxxxxxxx > > To: users@xxxxxxxxxxxxxxxx > > Subject: RE: [users@httpd] Switching between HTTP and HTTPS > > > > > > Hi all, > > Thanks to everyone who responded, Here is some stats for soln > > that I have > > used. > > > > I used following rewrite rule > > RewriteRule ^bas/(.*?BIR.*?)$ https://172.24.6.57:7334/bas/$1 [L] > > You want a redirect so you have to use mod_rewrite in redirect mode. > Hence you need a [R] flag... > > Rgds, > Owen Boyle > Disclaimer: Any disclaimer attached to this message may be ignored. > > > > > Rewrite log after accessing page > > "http://172.24.6.57:7333/bas/BIRApprovedGet.do" is pasted below > > > > 172.24.226.59 - - [20/Jun/2006:13:52:42 +051800] > > [172.24.6.57/sid#153018][rid#1a74a8/initial] (1) pass through /bas > > > > Desired page is displayed but here I am neither displayed a > > security alert > > message, nor the link has changed to https and port changed. > > > > Any Clues why????? > > > > Regards, > > Anil D > > > > > > -----Original Message----- > > From: Matus UHLAR - fantomas [mailto:uhlar@xxxxxxxxxxx] > > Sent: Tuesday, June 20, 2006 1:16 PM > > To: users@xxxxxxxxxxxxxxxx > > Subject: Re: [users@httpd] Switching between HTTP and HTTPS > > > > On 19.06.06 19:19, Anil Dighade wrote: > > > Can anybody tell me how to implement switching between HTTP > > and HTTPS. As > > > read from various sources, this should be done using > > qualified URL from > > > code. But is it possible in Apache to configure such > > switching depending > > on > > > URL string. For eg. if I enter "crypt" word in my url, then > > on identifying > > > that word Apache should redirect/rewrite it and I should be > > displayed that > > > link over ssl. > > > http://localhost:7333/docrypt.jsp then I should be forwarded to > > > https://localhost:7334/docrypt.jsp > > > > > > I have tried some of the solutions that are available on > > net, but could > > not > > > get success. > > > > the easiest solution is to put this line: > > > > Redirect permanent /docrypt.jsp https://localhost:7334/docrypt.jsp > > > > into <VirtualHost> definition for localhost:7333 > > > > If you have many documents to redirect, you can play with > > RedirectMatch > > and/or Rewrite* > > -- > > Matus UHLAR - fantomas, uhlar@xxxxxxxxxxx ; http://www.fantomas.sk/ > > Warning: I wish NOT to receive e-mail advertising to this address. > > Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. > > Saving Private Ryan... > > Private Ryan exists. Overwrite? (Y/N) > > > > > --------------------------------------------------------------------- > > The official User-To-User support forum of the Apache HTTP > > Server Project. > > See <URL:http://httpd.apache.org/userslist.html> for more info. > > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > > > > > > ============================================================== > > ============================================================== > > > > Tech Mahindra, formerly Mahindra-British Telecom. > > > > > > Disclaimer: > > > > > > The contents of this E-mail (including the contents of the > > enclosure(s) or attachment(s) if any) are privileged and > > confidential material of Tech Mahindra and should not be > > disclosed to, used by or copied in any manner by anyone other > > than the intended addressee(s). In case you are not the > > desired addressee, you should delete this message and/or > > re-direct it to the sender. The views expressed in this > > E-mail message (including the enclosure(s) or attachment(s) > > if any) are those of the individual sender, except where the > > sender expressly, and with authority, states them to be the > > views of Tech Mahindra. > > > > > > This e-mail message including attachment/(s), if any, is > > believed to be free of any virus. However, it is the > > responsibility of the recipient to ensure that it is virus > > free and Tech Mahindra is not responsible for any loss or > > damage arising in any way from its use. > > > > ============================================================== > > ============================================================== > > > > > --------------------------------------------------------------------- > > The official User-To-User support forum of the Apache HTTP > > Server Project. > > See <URL:http://httpd.apache.org/userslist.html> for more info. > > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > > > > > This message is for the named person's use only. It may contain > confidential, proprietary or legally privileged information. No > confidentiality or privilege is waived or lost by any > mistransmission. If > you receive this message in error, please notify the sender > urgently and > then immediately delete the message and any copies of it from > your system. > Please also immediately destroy any hardcopies of the > message. You must not, > directly or indirectly, use, disclose, distribute, print, or > copy any part > of this message if you are not the intended recipient. The > sender's company > reserves the right to monitor all e-mail communications through their > networks. Any views expressed in this message are those of > the individual > sender, except where the message states otherwise and the sender is > authorised to state them to be the views of the sender's company. > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP > Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > > > > ============================================================== > ============================================================== > > Tech Mahindra, formerly Mahindra-British Telecom. > > > Disclaimer: > > > The contents of this E-mail (including the contents of the > enclosure(s) or attachment(s) if any) are privileged and > confidential material of Tech Mahindra and should not be > disclosed to, used by or copied in any manner by anyone other > than the intended addressee(s). In case you are not the > desired addressee, you should delete this message and/or > re-direct it to the sender. The views expressed in this > E-mail message (including the enclosure(s) or attachment(s) > if any) are those of the individual sender, except where the > sender expressly, and with authority, states them to be the > views of Tech Mahindra. > > > This e-mail message including attachment/(s), if any, is > believed to be free of any virus. However, it is the > responsibility of the recipient to ensure that it is virus > free and Tech Mahindra is not responsible for any loss or > damage arising in any way from its use. > > ============================================================== > ============================================================== > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP > Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx