Re: Mod Rewrite for Server Status 503, depending upon URL

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

 



Untested, but:

<VirtualHost x.x.x.x:80>
	ServerName www.mysite.com
	<Location /books>
		ErrorDocument 503 http://www.mypartnersite.com/books
	</Location>
	<Location /music>
		ErrorDocument 503 http://www.mypartnersite.com/music
	</Location>
	...
</VirtualHost>

should do what you describe.

Pete

On Sat, Sep 17, 2011 at 07:28:39PM +0530, Ujjwal Kumar wrote:
>  /music is not a directory, it is just a URL which is routed to some
> specific JSP (bound with a struts action), through struts.xml and
> urlrewrite.xml (using tuckey).
> 
> I am restating the problem with more clarity.
> 
> Lets say we have 2 sites www.mysite.com and www.mypartnersite.com
> mysite deals with books, music, electronics, mobiles etc, partnersite deals
> with only books and music
> 
> In case of system errors, say 503(site unavailable) I would like to
> automatically redirect
> 
> www.mysite.com/books to www.mypartnersite.com/books
> www.mysite.com/music to www.mypartnersite.com/music
> and not do anything for
> www.mysite.com/electronics and www.mysite.com/mobiles [ ie give out 503 as
> it is]
> 
> How to set this up?
> 

-- 
Openstrike - improving business through open source
http://www.openstrike.co.uk/ or call 01722 770036 / 07092 020107

Attachment: pgpa85d4Vbv7z.pgp
Description: PGP signature


[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