A problem with the apache2 configuration I noticed a few days back.
I have in /etc/apache2/conf.d/charset the following line:
AddDefaultCharset UTF-8
Also, in /etc/apache2/apache2.conf I had an include directive:
grep Include /etc/apache2/apache2.conf | grep conf.d
Include /etc/apache2/conf.d/
The problem is that since a few days ago all the UTF-8 content on my server is displayed as gibberish and in order to see it correctly I'd need to manually select the UTF-8 encoding from the browser's encoding schemes.
Now my problem (and question) is: what to do in order to get apache2 to know of UTF-8 as default charset encoding... just as before?
I'm running Gutsy and apache 2.2.4 and the problem first occured, I think, a few days ago, after the update which included the apache2 package.
Best regards,
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
02-14-2008, 03:03 PM
"Alexandra Zaharia"
apache2 AddDefaultCharset problem
Anyone?...*
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
02-14-2008, 06:07 PM
Gerald Dachs
apache2 AddDefaultCharset problem
Am Thu, 14 Feb 2008 18:03:11 +0200
schrieb "Alexandra Zaharia" <f0rg3r@gmail.com>:
> Anyone?...
Sorry, but no, I use lighttpd
Gerald
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
02-14-2008, 06:15 PM
"Ashley Benton"
apache2 AddDefaultCharset problem
I tried to watch on the configuration of my apache server (/etc/apache2/apache2.conf, /etc/apache2/mods-availables...)but didn't find it.
May be you could try the apache mailing list if you don't get any answer.
Good luck
Meg
On Thu, Feb 14, 2008 at 11:03 AM, Alexandra Zaharia <f0rg3r@gmail.com> wrote:
Anyone?...*
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
02-14-2008, 06:16 PM
"Alexandra Zaharia"
apache2 AddDefaultCharset problem
On 2/14/08, Gerald Dachs <ubuntu@dachsweb.de> wrote:
Sorry, but no, I use lighttpd
Hi Gerald,
Stupid question maybe, but, erm, here goes: does lighttpd allow defining a default charset to use (such as UTF-8 for instance) for all server contents (i.e. directory listings and so on) ?
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
02-14-2008, 06:43 PM
"Alexandra Zaharia"
apache2 AddDefaultCharset problem
On 2/14/08, Ashley Benton <meggalen@gmail.com> wrote:
I tried to watch on the configuration of my apache server (/etc/apache2/apache2.conf, /etc/apache2/mods-availables...)but didn't find it.
May be you could try the apache mailing list if you don't get any answer.
Good luck
Meg
Hi Meg,
You say you "didn't find it" - I'm not sure I get this right, you didn't find the "AddDefaultCharset" line in your apache2 config? It is supposed to be in /etc/apache2/conf.d/charset
This ( http://httpd.apache.org/docs/2.2/mod/core.html#adddefaultcharset ) is pretty much it... I don't know, apparently it doesn't have any effect now, no matter how I'd set it ("on", "off", "utf-8", "iso-8859-whatever")...
I guess I'll try the apache mailing list, as you say, this is just *too* weird (it all worked perfectly neat, according to the documentation and stuff until the last update).
Thanks,
Alex.
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
02-14-2008, 06:43 PM
Gerald Dachs
apache2 AddDefaultCharset problem
Am Thu, 14 Feb 2008 21:16:58 +0200
schrieb "Alexandra Zaharia" <f0rg3r@gmail.com>:
> On 2/14/08, Gerald Dachs <ubuntu@dachsweb.de> wrote:
> >
> > Sorry, but no, I use lighttpd
> >
>
> Hi Gerald,
>
> Stupid question maybe, but, erm, here goes: does lighttpd allow
> defining a default charset to use (such as UTF-8 for instance) for
> all server contents (i.e. directory listings and so on) ?
That is not a stupid question, but I am not sure whether I have
the right answer. Beside a small entry page made with cmsimple,
I use the server only for my web mail client IMP and Squirrelmail,
the esniper front end es-f MailZu for spam quarantine, AvantFax for
faxing and ajaxterm for a javascript shell. The default installation
has no problems with the german umlauts, so I haven't seen your problem.
I have found only this in the config file:
lighttpd.conf:dir-listing.encoding = "utf-8"
Gerald
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
02-14-2008, 06:56 PM
"Ashley Benton"
apache2 AddDefaultCharset problem
Hi,
Sorry I found it #AddDefaultCharset UTF-8 is added after the "read documentation...encodings tags" And yes there is the # sign in front of it.
Hope that will help
Meg
On Thu, Feb 14, 2008 at 2:43 PM, Alexandra Zaharia <f0rg3r@gmail.com> wrote:
On 2/14/08, Ashley Benton <meggalen@gmail.com> wrote:
I tried to watch on the configuration of my apache server (/etc/apache2/apache2.conf, /etc/apache2/mods-availables...)but didn't find it.
May be you could try the apache mailing list if you don't get any answer.
Good luck
Meg
Hi Meg,
You say you "didn't find it" - I'm not sure I get this right, you didn't find the "AddDefaultCharset" line in your apache2 config? It is supposed to be in /etc/apache2/conf.d/charset
This ( http://httpd.apache.org/docs/2.2/mod/core.html#adddefaultcharset ) is pretty much it... I don't know, apparently it doesn't have any effect now, no matter how I'd set it ("on", "off", "utf-8", "iso-8859-whatever")...
I guess I'll try the apache mailing list, as you say, this is just *too* weird (it all worked perfectly neat, according to the documentation and stuff until the last update).
Thanks,
Alex.
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
02-14-2008, 07:04 PM
"Alexandra Zaharia"
apache2 AddDefaultCharset problem
On 2/14/08, Gerald Dachs <ubuntu@dachsweb.de> wrote:
That is not a stupid question, but I am not sure whether I have
the right answer. Beside a small entry page made with cmsimple,
I use the server only for my web mail client IMP and Squirrelmail,
the esniper front end es-f MailZu for spam quarantine, AvantFax for
faxing and ajaxterm for a _javascript_ shell. The default installation
has no problems with the german umlauts, so I haven't seen your problem.
I have found only this in the config file:
If you say you don't have problems with the German umlauts *and* if you also have that line stating dir-listing.encoding = "utf-8"... I guess this answers my problem! That's the only goddamn extra "feature" I need from a*web*server,*to*allow*me*to*specify*utf-8*as*the*encoding*used*in*the*directory*listings*:-)*
Thanks again for the hint, I'll keep on trying a little bit more with apache (including asking on their mailing lists what's wrong) and if that won't help... I might as well try lighttpd (after all... the whole OSS concept *is* about alternatives, actually).
Thank you,
Alex.
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
02-14-2008, 07:09 PM
"Alexandra Zaharia"
apache2 AddDefaultCharset problem
On 2/14/08, Ashley Benton <meggalen@gmail.com> wrote:
Hi,
Sorry I found it #AddDefaultCharset UTF-8 is added after the "read documentation...encodings tags" And yes there is the # sign in front of it.
Hope that will help
Meg
Hi*Meg,
I*know*that*by*default*this*line*is*commented*out* in*/etc/apache/conf.d/charset. As I said, I had it de-commented and also made sure I had an "Include /etc/apache/conf.d/" line in /etc/apache2/apache2.conf as well - well at least that was the first "test" and when I saw this didn't work,*I*tried*the*other*way*around: I commented out the "Include /etc/apache2/conf.d/" line in /etc/apache2/apache2.conf (which should disregard anything found in /etc/apache2/conf.d, as I see it) and added the "AddDefaultCharset utf-8" line _directly_ in /etc/apache2/apache2.conf. Oddly enough, this didn't work out either.
Alex.
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users