Chinaunix首页 | 论坛 | 博客
  • 博客访问: 228562
  • 博文数量: 57
  • 博客积分: 2135
  • 博客等级: 大尉
  • 技术积分: 570
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-10 13:55
文章分类

全部博文(57)

文章存档

2017年(1)

2011年(4)

2010年(4)

2009年(8)

2008年(3)

2007年(37)

我的朋友

分类: BSD

2007-06-19 14:40:05

在FreeBSD设置Apache手册:
在httpd.conf后面加入下面的设置:
# This should be changed to the ServerRoot/manual/.  The alias provides
# the manual, even if you choose to move your DocumentRoot.  You may comment
# this out if you do not care for the documentation.
#
AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/usr/local/share/doc/apache22$1" ##和上面的是同一行


    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all

   
        SetHandler type-map
   


    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
阅读(1172) | 评论(0) | 转发(0) |
0

上一篇:文字不间断连续

下一篇:phpMyAdmin安装

给主人留下些什么吧!~~