Re: Problems in apache2 on Debian/Sarge
On Sat, 2004-01-17 at 20:47, Paul Mackinney wrote:
> Thanks very much, I'll google for the hack. The Debian bug db came up
> empty on this issue, maybe it's an apache bug?
Whoops! I renamed the working apache2-doc file and left it in
/etc/apache2/conf.d/, so it was being used after all. Add this to the
bottom of your /etc/apache2/conf.d/apache2-doc
---- cut ----
AliasMatch ^/manual(?:/(?:de|en|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/ prefer-language=de
SetEnvIf Request_URI ^/manual/en/ prefer-language=en
SetEnvIf Request_URI ^/manual/fr/ prefer-language=fr
SetEnvIf Request_URI ^/manual/ja/ prefer-language=ja
SetEnvIf Request_URI ^/manual/ko/ prefer-language=ko
SetEnvIf Request_URI ^/manual/ru/ prefer-language=ru
RedirectMatch 301 ^/manual(?:/(de|en|fr|ja|ko|ru)){2,}(/.*)?$ \
/manual/$1$2
</Directory>
---- cut ----
and restart apache2, then http://localhost/manual/ should work. (Bad
line break at top and bottom -- remove the "\" and make it be one line
w/a space after the $.) Look here for info:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=201648
> BTW, how is the perchild version working for you? The package info has
> some scary disclaimers.
I haven't done anything yet but looked at the manual. :)
Reply to: