[webteam] servers.xml

Peter Saint-Andre stpeter at stpeter.im
Mon May 19 16:05:06 CDT 2008


On 05/19/2008 11:33 AM, Matthew Wild wrote:
> On Mon, May 19, 2008 at 6:10 PM, Peter Saint-Andre <stpeter at stpeter.im> wrote:
>> On 05/19/2008 10:09 AM, Tobias Markmann wrote:
>>> 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
>>>
>> Yes, and that results in a 403 Forbidden error. :)
>>
> 
> The problem with the RewriteRule is that it starts
> http://www.jabber.org/ which tells the server to use a redirect.
> Change it to the filesystem path of basicservers.xml and it should
> work fine I think.

I removed the redirect and added a symlink -- it seems to be working.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 7338 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mail.jabber.org/pipermail/webteam/attachments/20080519/2794cca8/attachment-0001.bin 


More information about the webteam mailing list