absolute url for feeds

View: New views
3 Messages — Rating Filter:   Alert me  

absolute url for feeds

by Vivek Gupta-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Roller is runing on Tomcat 6.0 with MySql as database. Its working fine if I
access the blog post, comments, admin console, RSS feeds etc. from my
machine. But  while trying to access the feed url (that appear in sidebar)
from some other machine on the network, it won't come up. I found that the
url which was generated for the feed is absolute. The expected url is -

http://mymachineip:8080/roller/smp/feed/enteries/atom

the url that was generated is -

 http://localhost:8080/roller/smp/feed/enteries/atom
Why roller is generating the abolute url instead of relative one?

Regards,
Viv

Re: absolute url for feeds

by Dick Davies :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You need to look under system administration -> configuration ->
'absolute url to site (if required)

and set it to mymachineip:8080

Roller (well, the servlet API) is doing its best to figure out your hostname,
and the best it can come up with is localhost. If you sort out DNS,
you shouldn't
need to apply this workaround.

On Mon, Sep 14, 2009 at 1:45 PM, Vivek Gupta <viv2005@...> wrote:

> Hi,
>
> Roller is runing on Tomcat 6.0 with MySql as database. Its working fine if I
> access the blog post, comments, admin console, RSS feeds etc. from my
> machine. But  while trying to access the feed url (that appear in sidebar)
> from some other machine on the network, it won't come up. I found that the
> url which was generated for the feed is absolute. The expected url is -
>
> http://mymachineip:8080/roller/smp/feed/enteries/atom
>
> the url that was generated is -
>
>  http://localhost:8080/roller/smp/feed/enteries/atom
> Why roller is generating the abolute url instead of relative one?
>
> Regards,
> Viv
>

Re: absolute url for feeds

by Vivek Gupta-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thx Davies for responding,

I tried the changes suggest by you. The feed url is now generated
with multiple slash -

http://192.168.100.166:8080/roller//smp/feed/entries/atom

the value that I have provided to "Absolute url to site" is

192.168.100.166:8080





On Tue, Sep 15, 2009 at 2:12 AM, Dick Davies <rasputnik@...>wrote:

> You need to look under system administration -> configuration ->
> 'absolute url to site (if required)
>
> and set it to mymachineip:8080
>
> Roller (well, the servlet API) is doing its best to figure out your
> hostname,
> and the best it can come up with is localhost. If you sort out DNS,
> you shouldn't
> need to apply this workaround.
>
> On Mon, Sep 14, 2009 at 1:45 PM, Vivek Gupta <viv2005@...> wrote:
> > Hi,
> >
> > Roller is runing on Tomcat 6.0 with MySql as database. Its working fine
> if I
> > access the blog post, comments, admin console, RSS feeds etc. from my
> > machine. But  while trying to access the feed url (that appear in
> sidebar)
> > from some other machine on the network, it won't come up. I found that
> the
> > url which was generated for the feed is absolute. The expected url is -
> >
> > http://mymachineip:8080/roller/smp/feed/enteries/atom
> >
> > the url that was generated is -
> >
> >  http://localhost:8080/roller/smp/feed/enteries/atom
> > Why roller is generating the abolute url instead of relative one?
> >
> > Regards,
> > Viv
> >
>