make squeaksource work without www

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

make squeaksource work without www

Damien Pollet
Hi,

is it possible to configure the squeaksource server so that commits
still work when we omit the www part from the repository URL ?

Package checkout already works but when saving a version, Monticello
gets a HTTP 302 status.

--
Damien Pollet
type less, do more [ | ] http://typo.cdlm.fasmz.org

Reply | Threaded
Open this post in threaded view
|

Re: make squeaksource work without www

Philippe Marschall
2007/4/22, Damien Pollet <[hidden email]>:
> Hi,
>
> is it possible to configure the squeaksource server so that commits
> still work when we omit the www part from the repository URL ?
>
> Package checkout already works but when saving a version, Monticello
> gets a HTTP 302 status.

That's a problem with HTTPSocket (this would then be infinite plus one).
Basically you should use www instead and SqueakSource tells you to do
so (via http, 303 would probably be better, semantically) but
HTTPSocket just does not care, like it does for a lot of things, for
example your proxy if POSTing.
Possible solutions:
- replace HTTPSocket with something that works like Curl
- use www
Don't even think about fixing HTTPSocket.

Cheers
Philippe

> --
> Damien Pollet
> type less, do more [ | ] http://typo.cdlm.fasmz.org
>
>

Reply | Threaded
Open this post in threaded view
|

Re: make squeaksource work without www

Lukas Renggli
> > Package checkout already works but when saving a version, Monticello
> > gets a HTTP 302 status.
>
> That's a problem with HTTPSocket (this would then be infinite plus one).
> Basically you should use www instead and SqueakSource tells you to do
> so (via http, 303 would probably be better, semantically) but
> HTTPSocket just does not care, like it does for a lot of things, for
> example your proxy if POSTing.
> Possible solutions:
> - replace HTTPSocket with something that works like Curl
> - use www
> Don't even think about fixing HTTPSocket.

The current configuration redirects all host-names not equal to
www.squeaksource.com to the official domain. I guess this redirect
cannot be handled by HTTPSocket. It should work in you web browser or
using Curl.

We needed to introduce this (permanent) redirect because SqueakSource
was moved several times to different machines and there are a lot of
people that are still using the original server names.

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch

Reply | Threaded
Open this post in threaded view
|

Re: make squeaksource work without www

Philippe Marschall
2007/4/22, Lukas Renggli <[hidden email]>:

> > > Package checkout already works but when saving a version, Monticello
> > > gets a HTTP 302 status.
> >
> > That's a problem with HTTPSocket (this would then be infinite plus one).
> > Basically you should use www instead and SqueakSource tells you to do
> > so (via http, 303 would probably be better, semantically) but
> > HTTPSocket just does not care, like it does for a lot of things, for
> > example your proxy if POSTing.
> > Possible solutions:
> > - replace HTTPSocket with something that works like Curl
> > - use www
> > Don't even think about fixing HTTPSocket.
>
> The current configuration redirects all host-names not equal to
> www.squeaksource.com to the official domain. I guess this redirect
> cannot be handled by HTTPSocket. It should work in you web browser or
> using Curl.
>
> We needed to introduce this (permanent) redirect because SqueakSource
> was moved several times to different machines and there are a lot of
> people that are still using the original server names.

Oh yes:

#--------------------------------------------------------
# Profile Name: www.squeaksource.com
# Date Range: 4/15/2007 - 4/21/2007
#--------------------------------------------------------

#--------------------------------------------------------
# Hostnames
#--------------------------------------------------------
Hostnames Pageviews
www.squeaksource.com 6074
nehalem.gemstone.com 36
kilana.unibe.ch 29
marius.savatech.ro 26
squeaksource.pinesoft.co.uk 22
www.squeaksource.com. 2

> Cheers,
> Lukas
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
>
>

Reply | Threaded
Open this post in threaded view
|

Re: make squeaksource work without www

Damien Pollet
In reply to this post by Philippe Marschall
On 22/04/07, Philippe Marschall <[hidden email]> wrote:
> - replace HTTPSocket with something that works like Curl
> - use www
> Don't even think about fixing HTTPSocket.

I didn't :-)

I was thinking about changing the vhost config on the server so that
squeaksource is served both with and without www... in Apache it seems
this directive would do it:

ServerAlias domain.tld *.domain.tld

(from http://httpd.apache.org/docs/1.3/vhosts/name-based.html )

--
Damien Pollet
type less, do more [ | ] http://typo.cdlm.fasmz.org

Reply | Threaded
Open this post in threaded view
|

Re: make squeaksource work without www

Lukas Renggli
> I was thinking about changing the vhost config on the server so that
> squeaksource is served both with and without www... in Apache it seems
> this directive would do it:
>
> ServerAlias domain.tld *.domain.tld
>
> (from http://httpd.apache.org/docs/1.3/vhosts/name-based.html )

It is already like that. As I said earlier everything that does not
match www.squeaksource.com is redirected to the full name as there are
many different (legacy) machines that proxy or redirect to
SqueakSource or one of its old entry points. Why is this an issue for
you?

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch

Reply | Threaded
Open this post in threaded view
|

Re: make squeaksource work without www

Damien Pollet
On 23/04/07, Lukas Renggli <[hidden email]> wrote:
> SqueakSource or one of its old entry points. Why is this an issue for
> you?

It's just frustrating :)

--
Damien Pollet
type less, do more [ | ] http://typo.cdlm.fasmz.org

Reply | Threaded
Open this post in threaded view
|

Re: make squeaksource work without www

Lukas Renggli
On 4/23/07, Damien Pollet <[hidden email]> wrote:
> On 23/04/07, Lukas Renggli <[hidden email]> wrote:
> > SqueakSource or one of its old entry points. Why is this an issue for
> > you?
>
> It's just frustrating :)

Not any more. I added some more rewrite rules ...

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch