Thread: New site - mirroring issues

New site - mirroring issues

From
"Dave Page"
Date:
I've just take a quick browse of the mirrored version of the new site
and found a couple of problems:

1) Static versions of 'about/casestudies' and 'developer/profiles' are
not being generated for some reason. Nothing obvious appears in the
logs. Any ideas on that one Alexey?

2) 'docs/manuals', 'docs/faq', 'docs/books' and 'community/lists' are
innaccessible on the mirrors. I think this is because there is a
docs/manuals directory and a docs/manuals.html (the intended target),
however Apache tries to display the index.html in the directory instead
of rewriting to the html file, and then fails because there is no
docs/manuals/index.html and dir browsing is disallowed.

Can someone confirm my diagnosis of that second one please? I believe
the easiest fix is to rename the directory or the file so there is no
clash, but someone better versed in the ways of the .htaccess file might
have a better idea....

Regards, Dave

Re: New site - mirroring issues

From
Alexey Borzov
Date:
Hi,

Dave Page wrote:
> I've just take a quick browse of the mirrored version of the new site
> and found a couple of problems:
>
> 1) Static versions of 'about/casestudies' and 'developer/profiles' are
> not being generated for some reason. Nothing obvious appears in the
> logs. Any ideas on that one Alexey?

::shrug::
Where are they linked from?

> 2) 'docs/manuals', 'docs/faq', 'docs/books' and 'community/lists' are
> innaccessible on the mirrors. I think this is because there is a
> docs/manuals directory and a docs/manuals.html (the intended target),
> however Apache tries to display the index.html in the directory instead
> of rewriting to the html file, and then fails because there is no
> docs/manuals/index.html and dir browsing is disallowed.
>
> Can someone confirm my diagnosis of that second one please? I believe
> the easiest fix is to rename the directory or the file so there is no
> clash, but someone better versed in the ways of the .htaccess file might
> have a better idea....

Yep, your diagnosis is most probably right. The easiest way is to change
links from docs/manuals to docs/manuals/, then spider will save
docs/manuals/index.html and everything will work as expected.

Re: New site - mirroring issues

From
"Dave Page"
Date:

> -----Original Message-----
> From: Alexey Borzov [mailto:borz_off@cs.msu.su]
> Sent: 16 December 2004 11:53
> To: Dave Page
> Cc: PostgreSQL WWW Mailing List
> Subject: Re: [pgsql-www] New site - mirroring issues
>
> Hi,
>
> Dave Page wrote:
> > I've just take a quick browse of the mirrored version of
> the new site
> > and found a couple of problems:
> >
> > 1) Static versions of 'about/casestudies' and
> 'developer/profiles' are
> > not being generated for some reason. Nothing obvious appears in the
> > logs. Any ideas on that one Alexey?
>
> ::shrug::
> Where are they linked from?

http://wwwmaster.postgresql.org/about (fourth option in the left side
menu)
http://wwwmaster.postgresql.org/developer (second option in the left
side menu)


> Yep, your diagnosis is most probably right. The easiest way
> is to change
> links from docs/manuals to docs/manuals/, then spider will save
> docs/manuals/index.html and everything will work as expected.

Nah, it's the other way round - it /is/ trying to save
docs/manuals/index.html, it /should/ be trying to save docs/manuals.html

I would think the easy fix is to move docs/manuals.html to
docs/manuals/index.html etc?

Regards, Dave.

Re: New site - mirroring issues

From
Alexey Borzov
Date:
Hi,

Dave Page wrote:
>>>1) Static versions of 'about/casestudies' and
>>
>>'developer/profiles' are
>>
>>>not being generated for some reason. Nothing obvious appears in the
>>>logs. Any ideas on that one Alexey?
>>
>>::shrug::
>>Where are they linked from?
>
> http://wwwmaster.postgresql.org/about (fourth option in the left side
> menu)
> http://wwwmaster.postgresql.org/developer (second option in the left
> side menu)

OK, don't see anything obviously wrong with the links. I'll probably try
running the mirroring script myself tomorrow to understand the source of
this problem.

>>Yep, your diagnosis is most probably right. The easiest way
>>is to change
>>links from docs/manuals to docs/manuals/, then spider will save
>>docs/manuals/index.html and everything will work as expected.
>
>
> Nah, it's the other way round - it /is/ trying to save
> docs/manuals/index.html, it /should/ be trying to save docs/manuals.html
>
> I would think the easy fix is to move docs/manuals.html to
> docs/manuals/index.html etc?

Once again: you can't have both foo.html and directory foo/ on a static
mirror. Therefore you need only to get directory foo/ and an index.html
file within it. To achieve this, you *only* need to change links on
dynamic website from foo to foo/. You don't need to touch or rename the
foo.html template itself.


Re: New site - mirroring issues

From
"Dave Page"
Date:

> -----Original Message-----
> From: Alexey Borzov [mailto:borz_off@cs.msu.su]
> Sent: 16 December 2004 13:20
> To: Dave Page
> Cc: PostgreSQL WWW Mailing List
> Subject: Re: [pgsql-www] New site - mirroring issues
>
> OK, don't see anything obviously wrong with the links. I'll
> probably try
> running the mirroring script myself tomorrow to understand
> the source of
> this problem.

OK, thanks.

> Once again: you can't have both foo.html and directory foo/
> on a static
> mirror. Therefore you need only to get directory foo/ and an
> index.html
> file within it. To achieve this, you *only* need to change links on
> dynamic website from foo to foo/. You don't need to touch or
> rename the
> foo.html template itself.

Ahh, yes - that got it - thanks. On further investigation I realised
that other similar files/directories were unnaffected - the difference
being that for /about/ for example, we had

about/
about.html
about/index.html

With the latter being the file that was actually served. With
about/casestudies, the index.html was missing.

Regards, Dave.

Re: New site - mirroring issues

From
"Dave Page"
Date:

> -----Original Message-----
> From: pgsql-www-owner@postgresql.org
> [mailto:pgsql-www-owner@postgresql.org] On Behalf Of Dave Page
> Sent: 16 December 2004 13:33
> To: Alexey Borzov
> Cc: PostgreSQL WWW Mailing List
> Subject: Re: [pgsql-www] New site - mirroring issues
>
>
>
> > -----Original Message-----
> > From: Alexey Borzov [mailto:borz_off@cs.msu.su]
> > Sent: 16 December 2004 13:20
> > To: Dave Page
> > Cc: PostgreSQL WWW Mailing List
> > Subject: Re: [pgsql-www] New site - mirroring issues
> >
> > OK, don't see anything obviously wrong with the links. I'll
> > probably try
> > running the mirroring script myself tomorrow to understand
> > the source of
> > this problem.
>
> OK, thanks.

Further to that - it's only the developer profiles that are now broken.
Everything else was a missing slash on a directory, but that one is a
file.

Regards, Dave.