On 18/08/07, Zenaan Harkness <[EMAIL PROTECTED]> wrote:
>
> Anyone know what the magical google search should be to figure out how
> to read the apache2-doc docs on my local webserver?
>
> Each HTML file has various versions named *.<lang> where <lang> is two
> char language code, and the links point to the filename without the lang
> extension, which is REALLY frustrating.
>
> This is in /usr/share/doc/apache2-doc/manual/ etc.
>
> How do I get apache to serve up the appropriate language setting, and
> any idea why this isn't installed in such a way as to do so, by default?


I've seen this happen when there was a bug on Debian Etch's apache2-doc
package (which was fixed long ago).

Here is the Apache configuration file that comes with apach2-doc now and
works for me (I get the English version):

AliasMatch ^/apache2-default/manual(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$
"/usr/share/doc/apache2-doc/manual/$1"
AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$
"/usr/share/doc/apache2-doc/manual/$1"
<Directory "/usr/share/doc/apache2-doc/manual/">
    Options Indexes
    AllowOverride None
    Order deny,allow
    Deny from all
    Allow from  127.0.0.0/255.0.0.0 ::1/128

    <Files *.html>
        SetHandler type-map
    </Files>

    SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru)/ prefer-language=$1
    RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru)){2,}(/.*)?$
/manual/$1$2
</Directory>

BTW - what distro are you on?

--Amos
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to