MC accessing 'source/squeak.org' fails with 301/301 type error

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

MC accessing 'source/squeak.org' fails with 301/301 type error

timrowledge
… but source.squeak.org/trunk is fine.

Wild guess that some redirect doohickey isn't hickeying its doo quite right?

tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Strange OpCodes: PNG: Pass Noxious Gas



Reply | Threaded
Open this post in threaded view
|

Re: MC accessing 'source/squeak.org' fails with 301/301 type error

Bert Freudenberg

On 2013-09-18, at 01:25, tim Rowledge <[hidden email]> wrote:

> … but source.squeak.org/trunk is fine.
>
> Wild guess that some redirect doohickey isn't hickeying its doo quite right?


Tobias just added some redirect handling but perhaps not in all places.

However, what exactly do you expect from MC accessing source.squeak.org, which is not a repository?

- Bert -



Reply | Threaded
Open this post in threaded view
|

Re: MC accessing 'source/squeak.org' fails with 301/301 type error

Tobias Pape
Am 18.09.2013 um 15:59 schrieb Bert Freudenberg <[hidden email]>:

>
> On 2013-09-18, at 01:25, tim Rowledge <[hidden email]> wrote:
>
>> … but source.squeak.org/trunk is fine.
>>
>> Wild guess that some redirect doohickey isn't hickeying its doo quite right?
>
>
> Tobias just added some redirect handling but perhaps not in all places.
>
> However, what exactly do you expect from MC accessing source.squeak.org, which is not a repository?
>

$curl -I http://source.squeak.org
HTTP/1.1 302 Moved Temporarily

Location: /@Qc3thFkEV6fxfKWh/Q_-cMY9o


This is Seaside answering its default Redirect.

But reviewing this, I see that I made a certain error "fixing" 301s for
HTTPSocket… My fix only catches absolute urls, not Server-local ones.

I should look into this.
Best
        -Tobias




signature.asc (210 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: MC accessing 'source/squeak.org' fails with 301/301 type error

David T. Lewis
In reply to this post by Bert Freudenberg
On Wed, Sep 18, 2013 at 03:59:55PM +0200, Bert Freudenberg wrote:

>
> On 2013-09-18, at 01:25, tim Rowledge <[hidden email]> wrote:
>
> > ? but source.squeak.org/trunk is fine.
> >
> > Wild guess that some redirect doohickey isn't hickeying its doo quite right?
>
>
> Tobias just added some redirect handling but perhaps not in all places.
>
> However, what exactly do you expect from MC accessing source.squeak.org, which is not a repository?
>

Only very slightly off topic I hope:

I am bringing squeaksource.com up on box3.squeak.org, running on port 8888.
I am a newbie on Apache and I am trying to figure out how to set it up.

The original config file from squeaksource.com (the real one that is running
at SCG) has these rules:


        RewriteEngine On

        RewriteCond %{REQUEST_URI} ^/@.* [NC]
        RewriteCond %{HTTP_USER_AGENT} (bot|seeker|search) [NC]
        RewriteRule . - [F,L]

        RewriteCond %{REQUEST_URI} !^/squeaksource/.*$ [NC]
        RewriteRule ^/(.*)$ http://localhost:8888/$1 [P,L]


So now I want to test it on box3 by arranging for http://box3.squeak.org
to map requests to the service running on port 8888. This would be just
for testing so I can make sure it works before trying to mess around with
the real URLs.

I tried doing this (just as a wild guess) and it did not seem to work:

        RewriteCond %{REQUEST_URI} !^/box3/.*$ [NC]
        RewriteRule ^/(.*)$ http://localhost:8888/$1 [P,L]

Can anyone tell me how to write a rule that would cause http://box3.squeak.org
to be mapped to the squeaksource service running on port 8888?

Thanks,
Dave
 

Reply | Threaded
Open this post in threaded view
|

Re: MC accessing 'source/squeak.org' fails with 301/301 type error

Tobias Pape
Am 18.09.2013 um 17:31 schrieb "David T. Lewis" <[hidden email]>:

> On Wed, Sep 18, 2013 at 03:59:55PM +0200, Bert Freudenberg wrote:
>>
>> On 2013-09-18, at 01:25, tim Rowledge <[hidden email]> wrote:
>>
>>> ? but source.squeak.org/trunk is fine.
>>>
>>> Wild guess that some redirect doohickey isn't hickeying its doo quite right?
>>
>>
>> Tobias just added some redirect handling but perhaps not in all places.
>>
>> However, what exactly do you expect from MC accessing source.squeak.org, which is not a repository?
>>
>
> Only very slightly off topic I hope:
>
> I am bringing squeaksource.com up on box3.squeak.org, running on port 8888.
> I am a newbie on Apache and I am trying to figure out how to set it up.
>
> The original config file from squeaksource.com (the real one that is running
> at SCG) has these rules:
>
>
>        RewriteEngine On
>
>        RewriteCond %{REQUEST_URI} ^/@.* [NC]
>        RewriteCond %{HTTP_USER_AGENT} (bot|seeker|search) [NC]
>        RewriteRule . - [F,L]
>
>        RewriteCond %{REQUEST_URI} !^/squeaksource/.*$ [NC]
>        RewriteRule ^/(.*)$ http://localhost:8888/$1 [P,L]
>
>
> So now I want to test it on box3 by arranging for http://box3.squeak.org
> to map requests to the service running on port 8888. This would be just
> for testing so I can make sure it works before trying to mess around with
> the real URLs.
>
> I tried doing this (just as a wild guess) and it did not seem to work:
>
>        RewriteCond %{REQUEST_URI} !^/box3/.*$ [NC]
This one must match the path on the server.
The Idea is that you have the image _just listeingin on localhost:8888_
and the public proxy (apache/nginx/whatever) just forwarding to that
thing (this is what this line does:)

>        RewriteRule ^/(.*)$ http://localhost:8888/$1 [P,L]
>


> Can anyone tell me how to write a rule that would cause http://box3.squeak.org
> to be mapped to the squeaksource service running on port 8888?


First, arrange that squeaksource is the default seaside app in the image
so that it responds to requests on /.
Then, just use the first (with On) and the last Rewrite-statement.

Best
        -Tobias




signature.asc (210 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: MC accessing 'source/squeak.org' fails with 301/301 type error

timrowledge
In reply to this post by Bert Freudenberg

On 18-09-2013, at 6:59 AM, Bert Freudenberg <[hidden email]> wrote:

However, what exactly do you expect from MC accessing source.squeak.org, which is not a repository?

Well since it appears in my mc browser I kinda expected it to be one. It seems a plausible name for a root from which one might explore further…


tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Strange OpCodes: MC: Melt down Core




Reply | Threaded
Open this post in threaded view
|

Re: MC accessing 'source/squeak.org' fails with 301/301 type error

David T. Lewis
In reply to this post by Tobias Pape
Thanks Tobias,

On Wed, Sep 18, 2013 at 05:37:05PM +0200, Tobias Pape wrote:

> Am 18.09.2013 um 17:31 schrieb "David T. Lewis" <[hidden email]>:
>
> > On Wed, Sep 18, 2013 at 03:59:55PM +0200, Bert Freudenberg wrote:
> >>
> >> On 2013-09-18, at 01:25, tim Rowledge <[hidden email]> wrote:
> >>
> >>> ? but source.squeak.org/trunk is fine.
> >>>
> >>> Wild guess that some redirect doohickey isn't hickeying its doo quite right?
> >>
> >>
> >> Tobias just added some redirect handling but perhaps not in all places.
> >>
> >> However, what exactly do you expect from MC accessing source.squeak.org, which is not a repository?
> >>
> >
> > Only very slightly off topic I hope:
> >
> > I am bringing squeaksource.com up on box3.squeak.org, running on port 8888.
> > I am a newbie on Apache and I am trying to figure out how to set it up.
> >
> > The original config file from squeaksource.com (the real one that is running
> > at SCG) has these rules:
> >
> >
> >        RewriteEngine On
> >
> >        RewriteCond %{REQUEST_URI} ^/@.* [NC]
> >        RewriteCond %{HTTP_USER_AGENT} (bot|seeker|search) [NC]
> >        RewriteRule . - [F,L]
> >
> >        RewriteCond %{REQUEST_URI} !^/squeaksource/.*$ [NC]
> >        RewriteRule ^/(.*)$ http://localhost:8888/$1 [P,L]
> >
> >
> > So now I want to test it on box3 by arranging for http://box3.squeak.org
> > to map requests to the service running on port 8888. This would be just
> > for testing so I can make sure it works before trying to mess around with
> > the real URLs.
> >
> > I tried doing this (just as a wild guess) and it did not seem to work:
> >
> >        RewriteCond %{REQUEST_URI} !^/box3/.*$ [NC]
>
> This one must match the path on the server.
> The Idea is that you have the image _just listeingin on localhost:8888_
> and the public proxy (apache/nginx/whatever) just forwarding to that
> thing (this is what this line does:)
>
> >        RewriteRule ^/(.*)$ http://localhost:8888/$1 [P,L]
> >
>
Yes, this is how the image is configured. It is a copy of the actual squeaksource.com
image, with only a few changes that I made to correct problems with repository
loading, image saving, etc.

I installed it in /home/ssdotcom/SqueakSource/ and the file and directory structure
below this is an exact copy of the files at squeaksource.com.

>
> > Can anyone tell me how to write a rule that would cause http://box3.squeak.org
> > to be mapped to the squeaksource service running on port 8888?
>
>
> First, arrange that squeaksource is the default seaside app in the image
> so that it responds to requests on /.

I believe that this is the current configuration (although I am away and cannot
check anything in the image right now). The image is currently running on
box3.squeak.org:8888 and squeaksource is the default application.

> Then, just use the first (with On) and the last Rewrite-statement.
>

I am attaching a copy of the /etc/apache2/sites-available/squeaksource.com file.
This is a copy of the one that SCG provided to us, and I am trying to edit it
so that it will work on box3.squeak.org. Can you please take a look at this file
and tell me if it looks right to you?

In the future, the public URL will be squeaksource.com, but of course for now
that URL is in use for the real squeaksource.com. I want to set up the Apache
configuration so that it will work when we switch the real URL, but in advance
of that I want to test it to make sure it is actually going to work.


> Best
> -Tobias
>

Thanks for your help :-)

Dave
 



squeaksource-dot-com (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: MC accessing 'source/squeak.org' fails with 301/301 type error

Bert Freudenberg
In reply to this post by timrowledge
On 2013-09-18, at 19:03, tim Rowledge <[hidden email]> wrote:

On 18-09-2013, at 6:59 AM, Bert Freudenberg <[hidden email]> wrote:

However, what exactly do you expect from MC accessing source.squeak.org, which is not a repository?

Well since it appears in my mc browser I kinda expected it to be one. It seems a plausible name for a root from which one might explore further…

It does not, unless you accidentally added it. 

- Bert -



Reply | Threaded
Open this post in threaded view
|

Re: MC accessing 'source/squeak.org' fails with 301/301 type error

Bob Arning-2
Are you saying http://source.squeak.org does not belong in this list? Is is there in http://ftp.squeak.org/4.5alpha/Squeak4.5-12641.zip, e.g.

Cheers,
Bob

On 9/19/13 7:45 AM, Bert Freudenberg wrote:
On 2013-09-18, at 19:03, tim Rowledge <[hidden email]> wrote:

On 18-09-2013, at 6:59 AM, Bert Freudenberg <[hidden email]> wrote:

However, what exactly do you expect from MC accessing source.squeak.org, which is not a repository?

Well since it appears in my mc browser I kinda expected it to be one. It seems a plausible name for a root from which one might explore further…

It does not, unless you accidentally added it. 

- Bert -




    



Reply | Threaded
Open this post in threaded view
|

Re: MC accessing 'source/squeak.org' fails with 301/301 type error

Bert Freudenberg
That is indeed what I'm saying. Wonder how it got there? Guess the ReleaseBuilder needs a step to initialize the proper repositories. 

- Bert -


On 19.09.2013, at 14:36, Bob Arning <[hidden email]> wrote:

Are you saying http://source.squeak.org does not belong in this list? Is is there in http://ftp.squeak.org/4.5alpha/Squeak4.5-12641.zip, e.g.

Cheers,
Bob

On 9/19/13 7:45 AM, Bert Freudenberg wrote:
On 2013-09-18, at 19:03, tim Rowledge <[hidden email]> wrote:

On 18-09-2013, at 6:59 AM, Bert Freudenberg <[hidden email]> wrote:

However, what exactly do you expect from MC accessing source.squeak.org, which is not a repository?

Well since it appears in my mc browser I kinda expected it to be one. It seems a plausible name for a root from which one might explore further…
<mime-attachment.png>

It does not, unless you accidentally added it. 

- Bert -




    




Reply | Threaded
Open this post in threaded view
|

Re: MC accessing 'source/squeak.org' fails with 301/301 type error

timrowledge

On 19-09-2013, at 5:51 AM, Bert Freudenberg <[hidden email]> wrote:

> That is indeed what I'm saying. Wonder how it got there? Guess the ReleaseBuilder needs a step to initialize the proper repositories.

I didn't *think* I was that dumb.

tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Plan to be spontaneous tomorrow.



Reply | Threaded
Open this post in threaded view
|

Re: MC accessing 'source/squeak.org' fails with 301/301 type error

Tobias Pape
In reply to this post by David T. Lewis
Hi
Am 18.09.2013 um 20:01 schrieb David T. Lewis <[hidden email]>:

> Thanks Tobias,
>
> On Wed, Sep 18, 2013 at 05:37:05PM +0200, Tobias Pape wrote:
>> Am 18.09.2013 um 17:31 schrieb "David T. Lewis" <[hidden email]>:
>>
>>> On Wed, Sep 18, 2013 at 03:59:55PM +0200, Bert Freudenberg wrote:
>>>>
>>>> On 2013-09-18, at 01:25, tim Rowledge <[hidden email]> wrote:
>>>>
>>>>> ? but source.squeak.org/trunk is fine.
>>>>>
>>>>> Wild guess that some redirect doohickey isn't hickeying its doo quite right?
>>>>
>>>>
>>>> Tobias just added some redirect handling but perhaps not in all places.
>>>>
>>>> However, what exactly do you expect from MC accessing source.squeak.org, which is not a repository?
>>>>
>>>
>>> Only very slightly off topic I hope:
>>>
>>> I am bringing squeaksource.com up on box3.squeak.org, running on port 8888.
>>> I am a newbie on Apache and I am trying to figure out how to set it up.
>>>
>>> The original config file from squeaksource.com (the real one that is running
>>> at SCG) has these rules:
>>>
>>>
>>>       RewriteEngine On
>>>
>>>       RewriteCond %{REQUEST_URI} ^/@.* [NC]
>>>       RewriteCond %{HTTP_USER_AGENT} (bot|seeker|search) [NC]
>>>       RewriteRule . - [F,L]
>>>
>>>       RewriteCond %{REQUEST_URI} !^/squeaksource/.*$ [NC]
>>>       RewriteRule ^/(.*)$ http://localhost:8888/$1 [P,L]
>>>
>>>
>>> So now I want to test it on box3 by arranging for http://box3.squeak.org
>>> to map requests to the service running on port 8888. This would be just
>>> for testing so I can make sure it works before trying to mess around with
>>> the real URLs.
>>>
>>> I tried doing this (just as a wild guess) and it did not seem to work:
>>>
>>>       RewriteCond %{REQUEST_URI} !^/box3/.*$ [NC]
>>
>> This one must match the path on the server.
>> The Idea is that you have the image _just listeingin on localhost:8888_
>> and the public proxy (apache/nginx/whatever) just forwarding to that
>> thing (this is what this line does:)
>>
>>>       RewriteRule ^/(.*)$ http://localhost:8888/$1 [P,L]
>>>
>>
>
> Yes, this is how the image is configured. It is a copy of the actual squeaksource.com
> image, with only a few changes that I made to correct problems with repository
> loading, image saving, etc.
Ok, then I know this image.

> I installed it in /home/ssdotcom/SqueakSource/ and the file and directory structure
> below this is an exact copy of the files at squeaksource.com.

Ok.

>
>>
>>> Can anyone tell me how to write a rule that would cause http://box3.squeak.org
>>> to be mapped to the squeaksource service running on port 8888?
>>
>>
>> First, arrange that squeaksource is the default seaside app in the image
>> so that it responds to requests on /.
>
> I believe that this is the current configuration (although I am away and cannot
> check anything in the image right now). The image is currently running on
> box3.squeak.org:8888 and squeaksource is the default application.
good.

>
>> Then, just use the first (with On) and the last Rewrite-statement.
>>
>
> I am attaching a copy of the /etc/apache2/sites-available/squeaksource.com file.
> This is a copy of the one that SCG provided to us, and I am trying to edit it
> so that it will work on box3.squeak.org. Can you please take a look at this file
> and tell me if it looks right to you?

It looks exactly as the scg one with your obvious changes :)

>
> In the future, the public URL will be squeaksource.com, but of course for now
> that URL is in use for the real squeaksource.com. I want to set up the Apache
> configuration so that it will work when we switch the real URL, but in advance
> of that I want to test it to make sure it is actually going to work.

Well, the ServerName and ServerAlias really have to match the public DNS name
when we use <VirtualHost *:80>. Apache then checks the host header and matches
against that ServerName/Alias. What are the logs?  (squeaksource-error.log)


shouldn't we move this to box-admins?

Best
        -Tobias



signature.asc (210 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: MC accessing 'source/squeak.org' fails with 301/301 type error

David T. Lewis
On Thu, Sep 19, 2013 at 07:41:41PM +0200, Tobias Pape wrote:

> Hi
> Am 18.09.2013 um 20:01 schrieb David T. Lewis <[hidden email]>:
>
> >
> > Yes, this is how the image is configured. It is a copy of the actual squeaksource.com
> > image, with only a few changes that I made to correct problems with repository
> > loading, image saving, etc.
>
> Ok, then I know this image.
>
> > I installed it in /home/ssdotcom/SqueakSource/ and the file and directory structure
> > below this is an exact copy of the files at squeaksource.com.
>
> Ok.
>
> >
> >>
> >>> Can anyone tell me how to write a rule that would cause http://box3.squeak.org
> >>> to be mapped to the squeaksource service running on port 8888?
> >>
> >>
> >> First, arrange that squeaksource is the default seaside app in the image
> >> so that it responds to requests on /.
> >
> > I believe that this is the current configuration (although I am away and cannot
> > check anything in the image right now). The image is currently running on
> > box3.squeak.org:8888 and squeaksource is the default application.
>
> good.
>
> >
> >> Then, just use the first (with On) and the last Rewrite-statement.
> >>
> >
> > I am attaching a copy of the /etc/apache2/sites-available/squeaksource.com file.
> > This is a copy of the one that SCG provided to us, and I am trying to edit it
> > so that it will work on box3.squeak.org. Can you please take a look at this file
> > and tell me if it looks right to you?
>
> It looks exactly as the scg one with your obvious changes :)
>
> >
> > In the future, the public URL will be squeaksource.com, but of course for now
> > that URL is in use for the real squeaksource.com. I want to set up the Apache
> > configuration so that it will work when we switch the real URL, but in advance
> > of that I want to test it to make sure it is actually going to work.
>
> Well, the ServerName and ServerAlias really have to match the public DNS name
> when we use <VirtualHost *:80>. Apache then checks the host header and matches
> against that ServerName/Alias. What are the logs?  (squeaksource-error.log)
>

Ah, I think I see now. Thanks.

I'm not sure what those logs are, but it looks like they will be just
the normal apache logging (whatever that might happen to be) renamed so
you can see that they came from the squeaksource.com virtual host.


>
> shouldn't we move this to box-admins?
>

Yes (I cc'ed box-admins this time). I've been trying to work this out on the
box-admins list but I suspect there may be a few more Apache gurus here on
squeak-dev, so I decided to hijack this thread and see if I could get some
tips. It worked :-)


> Best
> -Tobias

Thanks a lot for your help.

Dave