> -----Original Message----- > From: Sanjay Saha [mailto:sanjaydotsaha@xxxxxxxxxxx] > Sent: Mittwoch, 22. März 2006 10:21 > To: users@xxxxxxxxxxxxxxxx > Subject: [users@httpd] RedirectMatch > > Hi , > > My earlier post has some inconsistencies . > I am reposting it properly now. > Let me know if there is a wayout. > ---------- > revised > ---------- > I require a very unique expression matching with > apache . > Basically i would be redirecting this way, > > http://www.abc.domain.com -----> BTW, this *still* is inconsistent with the ServerName in the snippet below... > http://www.domain.com/abc/Index.jsp . > > Let me know the right expression at vhosts.conf.. > > I am using > <VirtualHost *> > ServerName abc.domain.com > RedirectMatch (.*)\.*$ http://www.domain.com/abc$1 What exactly are you trying to acheive with this expression? Give an example of input and output you expect. why not just use: Redirect / http://www.domain.com/abc/Index.jsp (as I suggested earlier....) > </VirtualHost> > > The above directive did worked well. > But when i add "Index.jsp" to DirectoryIndex > the above setting just didn't work. What does "didn't work" mean? - timeout? 404? wrong page? - describe *precisely* what happened (give example of input and redirect URLs)... [I'm thinking about self-referential URLs, but until I see more details about what you're trying to do, it's pointless to speculate] > > The DirectoryIndex at apache httpd.conf has > "Index.html,Index.htm and Index.jsp " General tip: it complicates life to use upper-case in URLs. HTTP (ie, domain-name part) is case-insensitive but the path part gets passed to the OS and some OSes are case-sensitive. It's much safer to use all lower-case to avoid ambiguity. Rgds, Owen Boyle Disclaimer: Any disclaimer attached to this message may be ignored. > ------------------ > I have tried this : > <VirtualHost *> > ServerName abc.domain.com > RedirectMatch (.*)\.jsp$ > http://www.domain.com/abc$1 > </VirtualHost> > > But its throwing a 404 error at directory > "http://domain.com/abc no such file found " > Regards.. > > > Sanjay Saha > > Sanjay Saha > Senior System Administrator > http://www.sanjaysaha.in > > Cel=+919830223862 > > > > ___________________________________________________________ > Yahoo! Photos - NEW, now offering a quality print service > from just 8p a photo http://uk.photos.yahoo.com > > --------------------------------------------------------------------- > 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