List Info

Thread: Changing the URL mapping




Changing the URL mapping
user name
2006-11-10 15:14:05
Antonio,
the places I made my changes to do something similar were:

1) properties/blog-admin-url
2) properties/blog-base-admin-url
3) properties/blog-url
4) properties/blog-base-url
5) blojsom/WEB-INF/web.xml (servelet-mapping/url-pattern)

The directory labeled "blogs" in my installation
has a group of
directories relating to the various blogs on my system. I
had zero luck
in eliminating a URL level (that is, going from
URL/Blojsom/blog/dan to
URL/Blojsom/dan) if that is what you are trying to
accomplish.

Good luck!
Dan

> -------- Original Message --------
> 
> I did this for blog-url and blog-admin-url, and fixed
blog-base-url as 
> well, but no luck. Any hints on debugging this?
> 
> David Czarnecki wrote:
> > Just make sure the blog URL settings in the
Properties table reference
> > "/blogs/" and not "/blog/".
> > 
> > 
> > On 11/9/06 1:18 AM, "Antonio Kamiya"
<kamiyafujisan.co.jp> wrote:
> > 
> >> I tried moving Blojsom to ROOT and changing
the url mapping to
> >> "/blogs/*" from the default
"/blog/*". That didn't seem to work
> >> either... Is there some kind of dependency in
the code to the directory
> >> name "/blog"?
> >>
> >> David Czarnecki wrote:
> >>> It would be in web.xml, but that would
mean that every request would be
> >>> processed by blojsom. That will cause
"failures" for items such as the CSS,
> >>> images, etc. 
> >>>
> >>> So ... don't do it.
> >>>
> >>> On 11/8/06 10:14 PM, "Antonio
Kamiya" <kamiyafujisan.co.jp> wrote:
> >>>
> >>>> Can you point me to where I would need
to fix in order to allow for a
> >>>> url mapping such as "/*"
instead of "/blog" for the blojsom servlet?
> >>>>
> >>>> I can't seem to find the resources
folder when I make that change.
> > 



------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
Changing the URL mapping
user name
2006-11-10 15:54:49
On 10/11/06, danmcginn-combs.org <danmcginn-combs.org> wrote:

> I had zero luck
> in eliminating a URL level (that is, going from
URL/Blojsom/blog/dan to
> URL/Blojsom/dan) if that is what you are trying to
accomplish.

The only way I have managed to achieve this is to have
Boljsom as the
ROOT webapp in the host (all this being Tomcat hosted).  The
only
"gotcha" is that ROOT webapp config _must_ to be
in server.xml, and
NOT in the [engine]/[host]/blojsom.xml file (IIRC its a
known bug).

-- 
This email is [X] bloggable [ ] ask first [ ] private

http://mikro2nd.net/
EarthStuff: http://mikro2nd.net/b
log/planb/
TechStuff: http://mikro2nd.net/bl
og/mike/

----- A day without chillies is a day wasted ------

------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
Changing the URL mapping
user name
2006-11-10 16:49:30
Dan,

> directories relating to the various blogs on my system.
I had zero
> luck in eliminating a URL level (that is, going from
> URL/Blojsom/blog/dan to URL/Blojsom/dan)

Actually, that is exactly what I am trying to accomplish.
Both according 
to David and the catalina.log, the reason it fails seems to
be because 
the Blojsom servlet is receiving the requests for
/resources/* and 
treating them as "unknown blog ids".

I think I have figured it out what to fix, so I will share
the patch 
when I get it done.

Of course, the easier recourse would have been to use Apache
mod_rewrite
in front of Tomcat, but what the heck, I will give it a
shot.


danmcginn-combs.org wrote:
> Antonio,
> the places I made my changes to do something similar
were:
> 
> 1) properties/blog-admin-url
> 2) properties/blog-base-admin-url
> 3) properties/blog-url
> 4) properties/blog-base-url
> 5) blojsom/WEB-INF/web.xml
(servelet-mapping/url-pattern)
> 
> The directory labeled "blogs" in my
installation has a group of
> directories relating to the various blogs on my system.
I had zero luck
> in eliminating a URL level (that is, going from
URL/Blojsom/blog/dan to
> URL/Blojsom/dan) if that is what you are trying to
accomplish.
> 
> Good luck!
> Dan
> 
>> -------- Original Message --------
>>
>> I did this for blog-url and blog-admin-url, and
fixed blog-base-url as 
>> well, but no luck. Any hints on debugging this?
>>
>> David Czarnecki wrote:
>>> Just make sure the blog URL settings in the
Properties table reference
>>> "/blogs/" and not "/blog/".
>>>
>>>
>>> On 11/9/06 1:18 AM, "Antonio Kamiya"
<kamiyafujisan.co.jp> wrote:
>>>
>>>> I tried moving Blojsom to ROOT and changing
the url mapping to
>>>> "/blogs/*" from the default
"/blog/*". That didn't seem to work
>>>> either... Is there some kind of dependency
in the code to the directory
>>>> name "/blog"?
>>>>
>>>> David Czarnecki wrote:
>>>>> It would be in web.xml, but that would
mean that every request would be
>>>>> processed by blojsom. That will cause
"failures" for items such as the CSS,
>>>>> images, etc. 
>>>>>
>>>>> So ... don't do it.
>>>>>
>>>>> On 11/8/06 10:14 PM, "Antonio
Kamiya" <kamiyafujisan.co.jp> wrote:
>>>>>
>>>>>> Can you point me to where I would
need to fix in order to allow for a
>>>>>> url mapping such as "/*"
instead of "/blog" for the blojsom servlet?
>>>>>>
>>>>>> I can't seem to find the resources
folder when I make that change.
> 
> 
> 
>
------------------------------------------------------------
-------------
> Using Tomcat but need to do more? Need to support web
services, security?
> Get stuff done quickly with pre-integrated technology
to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based
on Apache Geronimo
> http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Blojsom-users mailing list
> Blojsom-userslists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
> 

-- 
Antonio Kamiya <kamiyafujisan.co.jp>
Fujisan Magazine Services. Inc.
t:/+1-510-548-9662
f:/+1-510-548-9575




------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
Changing the URL mapping
user name
2006-11-10 17:05:32
Mike,

Do you mean to include the blojsom.xml in /WEB-INF/classes
into 
/etc/tomcat4.server.xml (I am on Debian and running Blojsom
3)?


Mike Morris wrote:
> On 10/11/06, danmcginn-combs.org <danmcginn-combs.org> wrote:
> 
>> I had zero luck
>> in eliminating a URL level (that is, going from
URL/Blojsom/blog/dan to
>> URL/Blojsom/dan) if that is what you are trying to
accomplish.
> 
> The only way I have managed to achieve this is to have
Boljsom as the
> ROOT webapp in the host (all this being Tomcat hosted).
 The only
> "gotcha" is that ROOT webapp config _must_ to
be in server.xml, and
> NOT in the [engine]/[host]/blojsom.xml file (IIRC its a
known bug).
> 

-- 
Antonio Kamiya <kamiyafujisan.co.jp>
Fujisan Magazine Services. Inc.
t:/+1-510-548-9662
f:/+1-510-548-9575



------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
Changing the URL mapping
user name
2006-11-11 07:52:49
On 10/11/06, Antonio Kamiya <kamiyafujisan.co.jp> wrote:

> Do you mean to include the blojsom.xml in
/WEB-INF/classes into
> /etc/tomcat4.server.xml (I am on Debian and running
Blojsom 3)?

I mean that, for the ROOT context _only_, you have to put
the
<Context>...</Context> entry into server.xml
instead of in a separate
file in
<tomcat-config-home>/[engine]/[host]/blojsom.xml.

OTOH it looks to me like you're using Tomcat 4 and not
Tomcat 5, so
this probably doesn't apply (sorry; my bad assumption). 
IIRC all
contexts have to get configured in server.xml in Tomcat4,
whereas that
whole scheme has changed for Tomcat5.

BTW: Tomcat5 = vast improvement.  Migrate if you possibly
can!

If you think you can pull it off with just URL rewriting,
then no need
to put Apache in front just to get mod_rewrite, just install
URLRewriteFilter (http://tuckey.org/urlre
write/) under Tomcat.  I
tried hard using this route, though, and could not make it
work, and
just changing the name from "blojsom" to
"" was a simpler option
available to me then.  If you /do/ manage to make URLRewrite
do the
job, please post the solution to the list, since this
question comes
up again and again over time, so would be very useful to
have a
solution in the list archives.
-- 
This email is [X] bloggable [ ] ask first [ ] private

http://mikro2nd.net/
EarthStuff: http://mikro2nd.net/b
log/planb/
TechStuff: http://mikro2nd.net/bl
og/mike/

----- A day without chillies is a day wasted ------

------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )