Re: redirecting index.jsp to its folder

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

 



So what exactly you are trying to achieve now can you be more specific? I assume you have already set up the apache to be reverse proxy for the weblogic application...
Also what does the war file have to do with anything? When you deploy the app in weblogic, the server explodes (unjar) the war file and creates the appropriate directory structure for the java application so all the files are there on the weblogic server. So with the reverse proxy you just map that file structure to the apache server.

ProxyRequest off
ProxyPass /ar/ http://your-weblogic-server-ip:your-weblogic-port/ar/
ProxyPassReverse /ar/ http://your-weblogic-server-ip:your-weblogic-port/ar/
.
.
<DirectoryMatch /ar/*>
      DirectoryIndex index.jsp
      # someother directives
      .
</Directory>

I guess your set up should look something like this. Could you post the relevant sections of your config file?

Otherwise if you have to use redirection something like this should work (not tested):

RewriteEngine On
RewriteRule ^/a([rs])(.*)$ /a$1$2/index.jsp


Igor

On Tue, Feb 16, 2010 at 3:39 PM, Charan <charan314@xxxxxxxxx> wrote:
I tried but that didn't work for me.

One concern I have is how can Apache look for the index.jsp when they are in a war file which is deployed onto weblogic. Apache can look for files only under the docroot.


On Mon, Feb 15, 2010 at 7:43 PM, Igor Cicimov <icicimov@xxxxxxxxx> wrote:
http://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryindex


On Tue, Feb 16, 2010 at 1:42 PM, Charan <charan314@xxxxxxxxx> wrote:
Is it possible to use DirectoryIndex eventhough I dont have the index.jsp in the docroot


On Mon, Feb 15, 2010 at 4:21 PM, Igor Cicimov <icicimov@xxxxxxxxx> wrote:
Don't need redirect have a look at DirectoryIndex directive.

e.g.
DirectoryIndex index.jsp

Igor


On Tue, Feb 16, 2010 at 10:59 AM, Charan <charan314@xxxxxxxxx> wrote:
Hi,

for the website I'm migrating, all the folders have their welcome page as index.jsp and that page is in the weblogic.
If I click on any link it's going until the folder but not picking up the index.jsp. Suppose that I have the below folders, how can I have a generic rule using Rewrite module for redirecting them to default index.jsp

/ar  --> should redirect to /ar/index.jsp
/ar/sample/product-id-sample --> should redirect to /ar/sample/product-id-sample/index.jsp
/ar/sample/articles-tips --> should redirect to /ar/sample/articles-tips/index.jsp
/ar/start/getting-started-faqs --> should redirect to ar/start/getting-started-faqs/index.jsp
/ar/ongoingsupport/all-faqs --> should redirect to /ar/ongoingsupport/all-faqs/index.jsp
/ar/start/insurance-basics --> should redirect to ar/start/insurance-basics/index.jsp
/as --> should redirect to /as/index.jsp
/as/start/starting-treatment --> should redirect to /as/start/starting-treatment/index.jsp


--
Thanks,





--
Thanks,
Charan




--
Thanks,
Charan


[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