SuSE Linux at a2e 2007

SuSE Linux at a2e 2007

Problems we have been encountering when running opensuse 10.2, as well some solutions.

1 History

2 Problems

2.1 2007-03-20 w3m & w3m.el do not recognize mime-type application/x-httpd-php

When trying to view http://a2e.de/ (or any other dynamic web page whose name ends in .html), we get

An appropriate representation of the requested resource /sig/oas/07/03/bmwdK3/ could not be found on this server.

Available variants:

  • index.de.html , type application/x-httpd-php, language de

Solution:

Write

accept_media application/x-httpd-php

to the configuration file ~/.w3m/config.

But watch out, it seems that

  • the config file works only if every single line is syntactically valid. E.g. if the file starts with a blank line, w3m ignores the whole file without warning
  • Comment lines begin with a percent (%) sign, not a hash mark

I inferred this from the configuration options given by Phil Gregory and Goto Yuzo, not from any official documentation.

The w3m documentation sourceforge mentions a ‘~/.w3m/config’ file in a FAQ, little else AFAICS. The Japanese version contains more info than the English version, but also nothing on configuration file writing AFAICS.

Nonetheless a future Opensuse should come with a useful config file.

This could also include a line like

accept_language de; q=1.0, zh; q=0.5, ja; q=0.5, fr; q=0.5, en; q=0.5

to indicate the language preference as specified in the SuSE configuration.

3 Resources

deplate
http://a2e.de/adv/07/suse
© 2007-03-19 Hartmut PILCH