redirecting index.jsp to its folder

redirecting index.jsp to its folder

am 16.02.2010 00:59:13 von Charan

--000e0cdfd7d2a124ce047fac689f
Content-Type: text/plain; charset=ISO-8859-1

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,

--000e0cdfd7d2a124ce047fac689f
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

ns-serif; font-size: 12px; color: rgb(51, 51, 51); ">Hi,
g-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; mar=
gin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">


ding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; mar=
gin-left: 0px; ">for the website I'm migrating, all the folders have th=
eir welcome page as index.jsp and that page is in the weblogic.
"padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0=
px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0p=
x; ">

If I click on any link it's going until the folder but not picking up t=
he index.jsp. Suppose that I have the below folders, how can I have a gener=
ic rule using Rewrite module for redirecting them to default index.jsp
tyle=3D"padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-=
left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-l=
eft: 0px; ">


ding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; mar=
gin-left: 0px; ">/ar =A0--> should redirect to /ar/index.jsp
"padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0=
px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0p=
x; ">

/ar/sample/product-id-sample --> should redirect to /ar/sample/product-i=
d-sample/index.jsp
g-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margi=
n-bottom: 0px; margin-left: 0px; ">

/ar/sample/articles-tips --> should redirect to /ar/sample/articles-tips=
/index.jsp
: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom=
: 0px; margin-left: 0px; ">

/ar/start/getting-started-faqs --> should redirect to ar/start/getting-s=
tarted-faqs/index.jsp
ding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; ma=
rgin-bottom: 0px; margin-left: 0px; ">

/ar/ongoingsupport/all-faqs --> should redirect to /ar/ongoingsupport/al=
l-faqs/index.jsp
bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-=
bottom: 0px; margin-left: 0px; ">

/ar/start/insurance-basics=A0--> should redirect to ar/start/insurance-b=
asics/index.jsp
ottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-b=
ottom: 0px; margin-left: 0px; ">

/as --> should redirect to /as/index.jsp
adding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px;=
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">/as/start/start=
ing-treatment --> should redirect to /as/start/starting-treatment/index.=
jsp




--
Thanks,



--000e0cdfd7d2a124ce047fac689f--

Re: redirecting index.jsp to its folder

am 16.02.2010 01:21:08 von Igor Cicimov

--001485e8edded3fdba047facb5ca
Content-Type: text/plain; charset=ISO-8859-1

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

--001485e8edded3fdba047facb5ca
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Don't need redirect have a look at DirectoryIndex directive. e>

e.g.
DirectoryIndex index.jsp

Igor

"gmail_quote">On Tue, Feb 16, 2010 at 10:59 AM, Charan &l=
t;>
=
wrote:

204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> nt-family: Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(51, 51, =
51);">Hi,




for the website I'm migrating,=
all the folders have their welcome page as index.jsp and that page is in t=
he weblogic.


If I click on any link it's going until the folder but not picking up t=
he index.jsp. Suppose that I have the below folders, how can I have a gener=
ic rule using Rewrite module for redirecting them to default index.jsp
tyle=3D"margin: 0px; padding: 0px;">



/ar =A0--> should redirect to /=
ar/index.jsp


/ar/sample/product-id-sample --> should redirect to /ar/sample/product-i=
d-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-s=
tarted-faqs/index.jsp


/ar/ongoingsupport/all-faqs --> should redirect to /ar/ongoingsupport/al=
l-faqs/index.jsp


/ar/start/insurance-basics=A0--> should redirect to ar/start/insurance-b=
asics/index.jsp


/as --> should redirect to /as/index.jsp
g: 0px;">/as/start/starting-treatment --> should redirect to /as/start/s=
tarting-treatment/index.jsp

>


--
Thanks,





--001485e8edded3fdba047facb5ca--

Re: redirecting index.jsp to its folder

am 16.02.2010 03:42:11 von Charan

--000e0cdf6d8a6e7dec047faeafed
Content-Type: text/plain; charset=ISO-8859-1

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

--000e0cdf6d8a6e7dec047faeafed
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Is it possible to use DirectoryIndex eventhough I dont have the index.jsp i=
n the docroot



On Mon, Feb 15, 2010 a=
t 4:21 PM, Igor Cicimov < ail.com">icicimov@gmail.com> wrote:


x #ccc solid;padding-left:1ex;">Don't need redirect have a look at Dire=
ctoryIndex directive.

e.g.
DirectoryIndex index.jsp<=
br>


Igor
r>
On Tue, Feb 16, 2010 at 10:59 AM, Charan <=
span dir=3D"ltr">< k">charan314@gmail.com> wrote:



04, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"> ily:Arial,Helvetica,sans-serif;font-size:12px;color:rgb(51, 51, 51)">Hi, style=3D"margin:0px;padding:0px">





for the website I'm migrating, all=
the folders have their welcome page as index.jsp and that page is in the w=
eblogic.


If I click on any link it's going until the folder but not picking up t=
he index.jsp. Suppose that I have the below folders, how can I have a gener=
ic rule using Rewrite module for redirecting them to default index.jsp
tyle=3D"margin:0px;padding:0px">





/ar =A0--> should redirect to /ar/i=
ndex.jsp


/ar/sample/product-id-sample --> should redirect to /ar/sample/product-i=
d-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-s=
tarted-faqs/index.jsp


/ar/ongoingsupport/all-faqs --> should redirect to /ar/ongoingsupport/al=
l-faqs/index.jsp


/ar/start/insurance-basics=A0--> should redirect to ar/start/insurance-b=
asics/index.jsp


/as --> should redirect to /as/index.jsp
0px">/as/start/starting-treatment --> should redirect to /as/start/start=
ing-treatment/index.jsp




--
Thanks,







--
Thanks,
=
Charan



--000e0cdf6d8a6e7dec047faeafed--

Re: redirecting index.jsp to its folder

am 16.02.2010 04:43:58 von Igor Cicimov

--0016e6498a5c3098e3047faf8b6f
Content-Type: text/plain; charset=ISO-8859-1

http://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryi ndex

On Tue, Feb 16, 2010 at 1:42 PM, Charan 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 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 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
>

--0016e6498a5c3098e3047faf8b6f
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

">http://httpd.apache.org/docs/2.2/mod/mod_dir.html#director yindex
<=
br>

On Tue, Feb 16, 2010 at 1:42 PM, Charan dir=3D"ltr"><charan314@gmail.com=
> wrote:

204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">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 < ilto:icicimov@gmail.com" target=3D"_blank">icicimov@gmail.com> > wrote:



204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Don't need re=
direct have a look at DirectoryIndex directive.

e.g. >
DirectoryIndex index.jsp



Igor


ass=3D"gmail_quote">On Tue, Feb 16, 2010 at 10:59 AM, Charan tr"><charan314@=
gmail.com
>
wrote:




204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> nt-family: Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(51, 51, =
51);">Hi,







for the website I'm migrating,=
all the folders have their welcome page as index.jsp and that page is in t=
he weblogic.


If I click on any link it's going until the folder but not picking up t=
he index.jsp. Suppose that I have the below folders, how can I have a gener=
ic rule using Rewrite module for redirecting them to default index.jsp
tyle=3D"margin: 0px; padding: 0px;">






/ar =A0--> should redirect to /=
ar/index.jsp


/ar/sample/product-id-sample --> should redirect to /ar/sample/product-i=
d-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-s=
tarted-faqs/index.jsp


/ar/ongoingsupport/all-faqs --> should redirect to /ar/ongoingsupport/al=
l-faqs/index.jsp


/ar/start/insurance-basics=A0--> should redirect to ar/start/insurance-b=
asics/index.jsp


/as --> should redirect to /as/index.jsp
g: 0px;">/as/start/starting-treatment --> should redirect to /as/start/s=
tarting-treatment/index.jsp

>


--
Thanks,







-- >Thanks,
Charan





--0016e6498a5c3098e3047faf8b6f--

Re: redirecting index.jsp to its folder

am 16.02.2010 05:39:19 von Charan

--000e0cdfda1655a8f4047fb05284
Content-Type: text/plain; charset=ISO-8859-1

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

> http://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryi ndex
>
>
> On Tue, Feb 16, 2010 at 1:42 PM, Charan 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 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 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

--000e0cdfda1655a8f4047fb05284
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I tried but that didn't work for me.


One concern I h=
ave is how can Apache look for the index.jsp when they are in a war file wh=
ich is deployed onto weblogic. Apache can look for files only under the doc=
root.



On Mon, Feb 15, 2010 at 7:43 PM, Igor Cicimo=
v <icicimov@gmai=
l.com
>
wrote:
argin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

" target=3D"_blank">http://httpd.apache.org/docs/2.2/mod/mod_d ir.html#direc=
toryindex


quote">

On Tue, Feb 16, 2010 at 1:42 PM, Charan < ilto:charan314@gmail.com" target=3D"_blank">charan314@gmail.com> an> wrote:

04, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">Is it possible to use D=
irectoryIndex eventhough I dont have the index.jsp in the docroot



On Mon, Feb 15, 201=
0 at 4:21 PM, Igor Cicimov < @gmail.com" target=3D"_blank">icicimov@gmail.com> wrote:



04, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">Don't need redirect=
have a look at DirectoryIndex directive.

e.g.

DirectoryIndex index.jsp



Igor


ass=3D"gmail_quote">On Tue, Feb 16, 2010 at 10:59 AM, Charan tr"><charan314@=
gmail.com
>
wrote:






04, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"> ily:Arial,Helvetica,sans-serif;font-size:12px;color:rgb(51, 51, 51)">Hi, style=3D"margin:0px;padding:0px">








for the website I'm migrating, all=
the folders have their welcome page as index.jsp and that page is in the w=
eblogic.


If I click on any link it's going until the folder but not picking up t=
he index.jsp. Suppose that I have the below folders, how can I have a gener=
ic rule using Rewrite module for redirecting them to default index.jsp
tyle=3D"margin:0px;padding:0px">








/ar =A0--> should redirect to /ar/i=
ndex.jsp


/ar/sample/product-id-sample --> should redirect to /ar/sample/product-i=
d-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-s=
tarted-faqs/index.jsp


/ar/ongoingsupport/all-faqs --> should redirect to /ar/ongoingsupport/al=
l-faqs/index.jsp


/ar/start/insurance-basics=A0--> should redirect to ar/start/insurance-b=
asics/index.jsp


/as --> should redirect to /as/index.jsp
0px">/as/start/starting-treatment --> should redirect to /as/start/start=
ing-treatment/index.jsp




--
Thanks,







-- >Thanks,
Charan







--
Thanks,
=
Charan



--000e0cdfda1655a8f4047fb05284--

Re: redirecting index.jsp to its folder

am 16.02.2010 06:06:07 von Igor Cicimov

--0016e644ddde02f881047fb0b155
Content-Type: text/plain; charset=ISO-8859-1

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

DirectoryIndex index.jsp
# someother directives
.


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 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 wrote:
>
>> http://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryi ndex
>>
>>
>> On Tue, Feb 16, 2010 at 1:42 PM, Charan 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 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 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
>

--0016e644ddde02f881047fb0b155
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

So what exactly you are trying to achieve now can you be more specific? I a=
ssume you have already set up the apache to be reverse proxy for the weblog=
ic 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 fi=
le and creates the appropriate directory structure for the java application=
so all the files are there on the weblogic server. So with the reverse pro=
xy 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:y=
our-weblogic-port/ar/
.
.
<DirectoryMatch /ar/*>
  =
  =A0 DirectoryIndex index.jsp

    =A0 # someother directives
    =A0 .
</Directo=
ry>

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

Otherwise if you h=
ave 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 <charan=
314@gmail.com
>
wrote:

204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I tried but that =
didn't work for me.

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





On Mon, Feb 15, 2010 at 7:43 PM, Igor Cicimo=
v < ank">icicimov@gmail.com> wrote:
_quote" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt=
0pt 0.8ex; padding-left: 1ex;">


" target=3D"_blank">http://httpd.apache.org/docs/2.2/mod/mod_d ir.html#direc=
toryindex




On Tue, Feb 16, 2010 at 1:42 PM, Charan < ilto:charan314@gmail.com" target=3D"_blank">charan314@gmail.com> an> wrote:

204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Is it possible to=
use DirectoryIndex eventhough I dont have the index.jsp in the docroot >



On Mon, Feb 15, 201=
0 at 4:21 PM, Igor Cicimov < @gmail.com" target=3D"_blank">icicimov@gmail.com> wrote:



204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Don't need re=
direct have a look at DirectoryIndex directive.

e.g. >

DirectoryIndex index.jsp



Igor


ass=3D"gmail_quote">On Tue, Feb 16, 2010 at 10:59 AM, Charan tr"><charan314@=
gmail.com
>
wrote:







204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> nt-family: Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(51, 51, =
51);">Hi,










for the website I'm migrating,=
all the folders have their welcome page as index.jsp and that page is in t=
he weblogic.


If I click on any link it's going until the folder but not picking up t=
he index.jsp. Suppose that I have the below folders, how can I have a gener=
ic rule using Rewrite module for redirecting them to default index.jsp
tyle=3D"margin: 0px; padding: 0px;">









/ar =A0--> should redirect to /=
ar/index.jsp


/ar/sample/product-id-sample --> should redirect to /ar/sample/product-i=
d-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-s=
tarted-faqs/index.jsp


/ar/ongoingsupport/all-faqs --> should redirect to /ar/ongoingsupport/al=
l-faqs/index.jsp


/ar/start/insurance-basics=A0--> should redirect to ar/start/insurance-b=
asics/index.jsp


/as --> should redirect to /as/index.jsp
g: 0px;">/as/start/starting-treatment --> should redirect to /as/start/s=
tarting-treatment/index.jsp

>


--
Thanks,







-- >Thanks,
Charan







-- >Thanks,
Charan





--0016e644ddde02f881047fb0b155--

Re: redirecting index.jsp to its folder

am 16.02.2010 06:15:55 von Igor Cicimov

--0016e6481a500a896d047fb0d491
Content-Type: text/plain; charset=ISO-8859-1

Also the directive is worth looking at in your case.

Did you define your Directory directive like this?


DirectoryIndex index.jsp
# someother directives
.


Cheers,
Igor

On Tue, Feb 16, 2010 at 4:06 PM, Igor Cicimov wrote:

> 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/
> .
> .
>
> DirectoryIndex index.jsp
> # someother directives
> .
>
>
> 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 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 wrote:
>>
>>> http://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryi ndex
>>>
>>>
>>> On Tue, Feb 16, 2010 at 1:42 PM, Charan 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 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 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
>>
>
>

--0016e6481a500a896d047fb0d491
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Also the <Location > directive is worth looking at in your case.
<=
br>Did you define your Directory directive like this?

<Directory =
/ar>
    =A0 DirectoryIndex index.jsp

    =A0 # someother directives
    =A0 .
</Directo=
ry>

Cheers,
Igor

On Tue, Feb=
16, 2010 at 4:06 PM, Igor Cicimov < icicimov@gmail.com">icicimov@gmail.com> wrote:

204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">So what exactly y=
ou are trying to achieve now can you be more specific? I assume you have al=
ready 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 a=
pp in weblogic, the server explodes (unjar) the war file and creates the ap=
propriate 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:y=
our-weblogic-port/ar/
.
.
<DirectoryMatch /ar/*>
  =
  =A0 DirectoryIndex index.jsp


    =A0 # someother directives
    =A0 .
</Directo=
ry>

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

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



RewriteEngine On
RewriteRule ^/a([rs])(.*)$ /a$1$2/index.jsp
t color=3D"#888888">

Igor
r>
On Tue, Feb 16, 2010 at 3:39 PM, Charan pan dir=3D"ltr">< ">charan314@gmail.com> wrote:


204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I tried but that =
didn't work for me.

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






On Mon, Feb 15, 2010 at 7:43 PM, Igor Cicimo=
v < ank">icicimov@gmail.com> wrote:
_quote" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt=
0pt 0.8ex; padding-left: 1ex;">



" target=3D"_blank">http://httpd.apache.org/docs/2.2/mod/mod_d ir.html#direc=
toryindex




On Tue, Feb 16, 2010 at 1:42 PM, Charan < ilto:charan314@gmail.com" target=3D"_blank">charan314@gmail.com> an> wrote:

204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Is it possible to=
use DirectoryIndex eventhough I dont have the index.jsp in the docroot >




On Mon, Feb 15, 201=
0 at 4:21 PM, Igor Cicimov < @gmail.com" target=3D"_blank">icicimov@gmail.com> wrote:



204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Don't need re=
direct have a look at DirectoryIndex directive.

e.g. >


DirectoryIndex index.jsp



Igor


ass=3D"gmail_quote">On Tue, Feb 16, 2010 at 10:59 AM, Charan tr"><charan314@=
gmail.com
>
wrote:








204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> nt-family: Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(51, 51, =
51);">Hi,











for the website I'm migrating,=
all the folders have their welcome page as index.jsp and that page is in t=
he weblogic.


If I click on any link it's going until the folder but not picking up t=
he index.jsp. Suppose that I have the below folders, how can I have a gener=
ic rule using Rewrite module for redirecting them to default index.jsp
tyle=3D"margin: 0px; padding: 0px;">










/ar =A0--> should redirect to /=
ar/index.jsp


/ar/sample/product-id-sample --> should redirect to /ar/sample/product-i=
d-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-s=
tarted-faqs/index.jsp


/ar/ongoingsupport/all-faqs --> should redirect to /ar/ongoingsupport/al=
l-faqs/index.jsp


/ar/start/insurance-basics=A0--> should redirect to ar/start/insurance-b=
asics/index.jsp


/as --> should redirect to /as/index.jsp
g: 0px;">/as/start/starting-treatment --> should redirect to /as/start/s=
tarting-treatment/index.jsp

>


--
Thanks,







-- >Thanks,
Charan







-- >Thanks,
Charan







--0016e6481a500a896d047fb0d491--