us5 content-type

View: New views
6 Messages — Rating Filter:   Alert me  

us5 content-type

by Deryck Hodge :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi.

us5.samba.org is sending pages as "text/html;iso-8859-1".  This needs
to be changed to just "text/html".  Can the maintainer of us5 please
make this change?

Thanks,
deryck

--
Deryck Hodge
http://www.devurandom.org/
http://www.samba.org/

"Aimless days, uncool ways of decathecting" --Mike Doughty (2005)

Re: us5 content-type

by Petya Kohts :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello.

ru3.samba.org (which I maintain) gives out
"text/html; charset=koi8-r"

I suppose this differs from country to country
and it's not much configurable under apache 1.3.*
(i.e. once charset was set for parent directory
with AddCharset directive it can't be removed
for child directories and I seem to have
everything on the webserver linked to one directory
which has ContentType defined).

In apache 2.* RemoveCharset was introduced but
this doesn't help much with apache 1.3.*

Do you think it's not possible to add AddCharset directive
into .htaccess on samba.org (which will obviously
resolve issues with me and with all the other
servers specifying their default ContentType)?


Petya.

On Mon, 12 Jun 2006 16:16:31 -0500, Deryck Hodge wrote

> Hi.
>
> us5.samba.org is sending pages as "text/html;iso-8859-1".  This needs
> to be changed to just "text/html".  Can the maintainer of us5 please
> make this change?
>
> Thanks,
> deryck
>
> --
> Deryck Hodge
> http://www.devurandom.org/
> http://www.samba.org/
>
> "Aimless days, uncool ways of decathecting" --Mike Doughty (2005)


Re: us5 content-type

by Chad Lake :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Jun 12, 2006, at 3:16 PM, Deryck Hodge wrote:

> Hi.
>
> us5.samba.org is sending pages as "text/html;iso-8859-1".  This needs
> to be changed to just "text/html".  Can the maintainer of us5 please
> make this change?

Hey there-

        Hmmm, I noticed that us3.samba.org is also returning the same  
charset.   This is just the default for our web server that is being  
sent out; perhaps the better solution would be to set the charset via  
a .htaccess file in the top level of the samba directory, so that the  
samba people can control the content type of their pages, rather than  
having each server maintainer tweak their default?

        Just a thought,


                                        -c


----
Chad Lake
Facility Director
School of Computing
University of Utah



Re: us5 content-type

by Deryck Hodge :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 6/12/06, Petya Kohts <petya@...> wrote:
> Hello.
>
> ru3.samba.org (which I maintain) gives out
> "text/html; charset=koi8-r"
>

What do you gain by having the server set the encoding?  Why not just
send plain, vanilla "text/html" and have the web pages control the
encoding as needed?  Then, you could server multiple content types
from the same server without much fuss.

Cheers,
deryck

--
Deryck Hodge
http://www.devurandom.org/
http://www.samba.org/

"Aimless days, uncool ways of decathecting" --Mike Doughty (2005)

Re: us5 content-type

by Deryck Hodge :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 6/12/06, Chad Lake <clake@...> wrote:

>
> On Jun 12, 2006, at 3:16 PM, Deryck Hodge wrote:
>
> > Hi.
> >
> > us5.samba.org is sending pages as "text/html;iso-8859-1".  This needs
> > to be changed to just "text/html".  Can the maintainer of us5 please
> > make this change?
>
> Hey there-
>
>         Hmmm, I noticed that us3.samba.org is also returning the same
> charset.   This is just the default for our web server that is being
> sent out; perhaps the better solution would be to set the charset via
> a .htaccess file in the top level of the samba directory, so that the
> samba people can control the content type of their pages, rather than
> having each server maintainer tweak their default?
>

That is an option, but then we would have to bug mirror maintainers
about the appropriate AllowOverride directives. :-)  Just seemed
easier to request "text/html" in this case.  (And I emailed Brian
separately about us3 since I had contact info for him.)

Cheers,
deryck

--
Deryck Hodge
http://www.devurandom.org/
http://www.samba.org/

"Aimless days, uncool ways of decathecting" --Mike Doughty (2005)

Re: us5 content-type

by SATOH Fumiyasu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

At Tue, 13 Jun 2006 02:08:09 +0400,
Petya Kohts wrote:

> ru3.samba.org (which I maintain) gives out
> "text/html; charset=koi8-r"
>
> I suppose this differs from country to country
> and it's not much configurable under apache 1.3.*
> (i.e. once charset was set for parent directory
> with AddCharset directive it can't be removed
> for child directories and I seem to have
> everything on the webserver linked to one directory
> which has ContentType defined).

Try:

  <VirtualHost ...>
    ServerName ru3.samba.org
    AddDefaultCharset Off
    ...
  </VirtualHost>

in your httpd.conf.

> In apache 2.* RemoveCharset was introduced but
> this doesn't help much with apache 1.3.*
>
> Do you think it's not possible to add AddCharset directive
> into .htaccess on samba.org (which will obviously
> resolve issues with me and with all the other
> servers specifying their default ContentType)?

That needs AllowOverride FileInfo directive. But allowing
override 'FileInfo' is insecure in some cases. AllowOverride
FileInfo allows to override a lot of directives other than
AddCharset directive.

--
-- Name: SATOH Fumiyasu / fumiyas @ miraclelinux.com
-- Business Home: http://www.MiracleLinux.com
-- Personal Home: http://www.SFO.jp/blog/

> On Mon, 12 Jun 2006 16:16:31 -0500, Deryck Hodge wrote
>
> > Hi.
> >
> > us5.samba.org is sending pages as "text/html;iso-8859-1".  This needs
> > to be changed to just "text/html".  Can the maintainer of us5 please
> > make this change?
> >
> > Thanks,
> > deryck
> >
> > --
> > Deryck Hodge
> > http://www.devurandom.org/
> > http://www.samba.org/
> >
> > "Aimless days, uncool ways of decathecting" --Mike Doughty (2005)
>