原始文件:http://itanotomomi.pixnet.net/blog/post/12562461-%E8%99%95%E7%90%86apache%E4%B8%8D%E6%94%AF%E6%8F%B4%E4%B8%AD%E6%96%87%E6%AA%94%E5%90%8D

安裝mod_fileiri.c。
(以下步驟皆為root身分執行)

安裝httpd-devel套件,以便使用整合模組的apxs工具。
yum install httpd-devel -y

 

下載mod_fileiri.c
wget http://dev.w3.org/apache-modules/mod_fileiri/mod_fileiri.c

 

將模組整合至httpd
apxs -i -a -c mod_fileiri.c

 

修改/etc/httpd/conf/http.conf設定檔案
任何地方加入下列程式,以啟動fileiri的功能
<IfModule mod_fileiri.c>
FileIRI On
FilenameCharset Big5
</IfModule>

 

重新啟動httpd
service httpd restart

 

arrow
arrow
    全站熱搜

    wbkuo 發表在 痞客邦 留言(0) 人氣()