RE: [users@httpd] RE: Switching between HTTP and HTTPS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Anil Dighade [mailto:danil@xxxxxxxxxxxxxxxx] 
> Sent: Tuesday, June 20, 2006 6:52 AM
> To: R.Sokoll@xxxxxxxxxxxx
> Cc: users@xxxxxxxxxxxxxxxx
> Subject: [users@httpd] RE: Switching between HTTP and HTTPS
> 
> 
> Rainer,
> Thanks for reply, Let me clarify the problem once more its not only
> "docrypt.jsp" that I need to redirect. It could any jsp 
> containing "crypt"
> in its name like "showcrypt.jsp, appcryptjsp". Do you know 
> any solution for
> this I tried following it doesn't work out.
> 
> RedirectMatch permanent ^/(.crypt*)$ https://localhost:7334/$1

This basic idea is correct; the trick is to get the regexp right... This depends on the apache branch [not given] - 2.2 uses Perl Compatible Regular Expressions (PCRE) while 1.3 use shell-style regex.

In your attempt above:

 - "." matches a single character so the pattern matches acrypt.. or bcrypt.. but not abcrypt.. 
 - "*" matches 0 or more of the last character (t) so it matches cryptttttt...

Try:  ^/(.*?crypt.*?)$

Or use mod_rewrite - it does the same thing but its better documented and more flexible if you need to change it in the future.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

> 
> Regards,
> Anil D
> 
> -----Original Message-----
> From: Rainer Sokoll [mailto:R.Sokoll@xxxxxxxxxxxx] 
> Sent: Monday, June 19, 2006 7:48 PM
> To: users@xxxxxxxxxxxxxxxx
> Subject: Re: [users@httpd] Switching between HTTP and HTTPS
> 
> On Mon, Jun 19, 2006 at 07:19:14PM +0530, Anil Dighade wrote:
> 
> > http://localhost:7333/docrypt.jsp then I should be forwarded to
> > https://localhost:7334/docrypt.jsp
> 
> Not tested, but
> RedirectMatch permanent ^/docrypt.jsp$ 
> https://localhost:7334/docrypt.jsp
> should do the job.
> 
> Rainer
> 
> ---------------------------------------------------------------------
> 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
> 
Diese E-mail ist eine private und persönliche Kommunikation. Sie hat keinen Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Gruppe. This e-mail is of a private and personal nature. It is not related to the exchange or business activities of the SWX Group. Le présent e-mail est un message privé et personnel, sans rapport avec l'activité boursière du Groupe SWX.
 
 
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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux