[webteam] servers.xml
Tobias Markmann
tmarkmann at googlemail.com
Mon May 19 11:09:30 CDT 2008
On Mon, May 19, 2008 at 3:35 PM, Peter Saint-Andre <stpeter at stpeter.im>
wrote:
> On 05/19/2008 6:38 AM, Peter Saint-Andre wrote:
> > On 05/18/2008 11:00 PM, Tobias Markmann wrote:
> >> On Mon, May 19, 2008 at 5:11 AM, Peter Saint-Andre <stpeter at stpeter.im>
> >> wrote:
> >>
> >>> On Sun, May 18, 2008 at 09:19:11PM +0100, Kevin Smith wrote:
> >>>> Hi all,
> >>>> It seems that Qt's HTTP support doesn't support redirects
> >>>> gracefully, meaning that the server list in Psi doesn't work now that
> >>>> the list has moved. We can change the URL for future versions, but
> >>>> there are a lot of old versions that won't be upgraded soon. Can we
> >>>> reinstate the old URL directly, instead of a redirect, please?
> >>> I think the problem is that these two conflict:
> >>>
> >>> http://www.jabber.org/servers (Drupal page)
> >>>
> >>> http://www.jabber.org/servers.xml (flat file)
> >>>
> >>> That's why we had to rename the file. I'm open to other solutions if we
> >>> can find them.
> >>>
> >>> /psa
> >>>
> >>>
> >> You could add a speacial rewrite rule exactly for the servers.xml URL.
> >
> > Good point -- I'll do that.
> >
> > Peter
> >
>
> In fact we already have this in the Apache config:
>
> RewriteRule ^/servers.xml$ http://www.jabber.org/basicservers.xml
> [R=permanent]
>
> But I think Kev is saying that the library he uses doesn't support
> redirects.
>
> Peter
>
> --
> Peter Saint-Andre
> https://stpeter.im/
>
Here[1] under Dynamic Mirror they use the [P] flag at the end. So the server
acts as proxy to that file and if servers.xml is requested it just returns
the content of basicservers.xml instead of sending an external redirect
request.
Tobias
[1] http://httpd.apache.org/docs/2.0/misc/rewriteguide.html#ToC1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.jabber.org/pipermail/webteam/attachments/20080519/8f4cc1e8/attachment.htm
More information about the webteam
mailing list