[users@httpd] RedirectMatch

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

 



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 -----> 
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
</VirtualHost>

The above directive did worked well.
But when i add "Index.jsp" to DirectoryIndex
the above setting just didn't work.

The DirectoryIndex at apache httpd.conf has
"Index.html,Index.htm and Index.jsp "
------------------
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



[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