Re: Handle a JSP Outside of WebSphere Plugin

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

 



OK so just testing mod_rewrite I can get a Rewrite working for files that are NOT served by the plugin which ARE located inside of a <Directory>...</Directory> tags.

<Directory /opt/WebSphere/AppServer/installedApps/wcs1/WC_wcs.ear/Stores.war/ConsumerDirect/images/catalog/en_US>
RewriteEngine ON
RewriteBase /
RewriteRule ^X01_large.jpg$ footer.gif
</Directory>

Before I start trying to use mod_rewrite for a request for a JSP page (which should be handled by the WebSphere plugin), I would like to be able to Rewrite a request that is NOT inside of a Directory tag, since the request to the JSP most certainly won't be. So why is this tag:


RewriteEngine ON
RewriteRule ^X01_large.jpg$ footer.gif


...ignored by Apache? Is it not possible to use mod_rewrite outside of a <Directory> tag?


Thanks,
Jim

From: "Eric Covener" <covener@xxxxxxxxx>
Reply-To: users@xxxxxxxxxxxxxxxx
To: users@xxxxxxxxxxxxxxxx
Subject: Re:  Handle a JSP Outside of WebSphere Plugin
Date: Thu, 26 Jul 2007 13:36:11 -0400

On 7/26/07, James Ellis <ellisje22@xxxxxxxxxxx> wrote:
> Within the plugin, all requests under "/stores/*" are supposed to be handled
> by the plugin.  Does anyone know how I can force a request for a certain
> JSP:
>
> http://servername/stores/suspect.jsp
>
> ...so that it won't be processed by the plugin?  I need to redirect all
> requests for this JSP to an html file on the web server (where Apache is
> installed).
>

You need to rewrite, using the [PT] flag, to something not under the
context root. Alternatively, you can use a redirect but this is
usually not so desirable.

--
Eric Covener
covener@xxxxxxxxx

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




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