apache2.2 鏀寔涓枃url mod_encoding鐨勬墿灞曠殑缂栬瘧涓庡畨瑁

闄勪欢

     apache澧炲姞mod_encoding缁勪欢鏉ユ敮鎸佷腑鏂噓rl
        姝ラ锛
        1.  鍑嗗濡備笅鍖咃細锛堣闄勪欢锛
        mod_encoding-20021209.tar.gz 
        mod_encoding.c.apache2.20040616 
        mod_encoding.c-apache2.2-20060520.patch 

        2.  瑙e帇mod_encoding骞舵墦琛ヤ竵
        tar zxvf mod_encoding-20021209.tar.gz 
        cp mod_encoding.c.apache2.20040616  mod_encoding-20021209/mod_encoding.c 
        cp mod_encoding.c-apache2.2-20060520.patch mod_encoding-20021209/ 
        cd mod_encoding-20021209  
        patch -p0 < mod_encoding.c-apache2.2-20060520.patch 
        3.瀹夎iconv-hook

        cd mod_encoding-20021209/lib 
        ./configure 
        make 
        make install 
        cp iconv*  /usr/local/lib 

        4. 璁剧疆鍔ㄦ佸叡浜簱

        #vi /etc/ld.so.conf 
        娣诲姞  /usr/local/lib 
        #ldconfig 

        5.  瀹夎mod_encod
        cd  mod_encoding-20021209/ 
        ./configure  
        --with-apxs=/usr/local/apache2/bin/apxs  
        --with-iconv-hook=/usr/ 
        make 
        gcc -shared -o mod_encoding.so mod_encoding.o -Wc,-Wall -Llib -liconv_hook 
        cp mod_encoding.so /usr/local/apache/modules 

        6.  缂栬緫apache鐨勯厤缃枃浠秇ttpd.conf
        澧炲姞涓嬮潰绫诲 
        #vi httpd.conf 
        apache澧炲姞mod_encoding缁勪欢鏉ユ敮鎸佷腑鏂噓rl
        姝ラ锛
        1.  鍑嗗濡備笅鍖咃細锛堣闄勪欢锛
        mod_encoding-20021209.tar.gz 
        mod_encoding.c.apache2.20040616 
        mod_encoding.c-apache2.2-20060520.patch 

        2.  瑙e帇mod_encoding骞舵墦琛ヤ竵
        tar zxvf mod_encoding-20021209.tar.gz 
        cp mod_encoding.c.apache2.20040616  mod_encoding-20021209/mod_encoding.c 
        cp mod_encoding.c-apache2.2-20060520.patch mod_encoding-20021209/ 
        cd mod_encoding-20021209  
        patch -p0 < mod_encoding.c-apache2.2-20060520.patch 
        3.瀹夎iconv-hook

        cd mod_encoding-20021209/lib 
        ./configure 
        make 
        make install 
        cp iconv*  /usr/local/lib 

        4. 璁剧疆鍔ㄦ佸叡浜簱

        #vi /etc/ld.so.conf 
        娣诲姞  /usr/local/lib 
        #ldconfig 

        5.  瀹夎mod_encod
        cd  mod_encoding-20021209/ 
        ./configure  
        --with-apxs=/usr/local/apache2/bin/apxs  
        --with-iconv-hook=/usr/ 
        make 
        gcc -shared -o mod_encoding.so mod_encoding.o -Wc,-Wall -Llib -liconv_hook 
        cp mod_encoding.so /usr/local/apache/modules 

        6.  缂栬緫apache鐨勯厤缃枃浠秇ttpd.conf
        澧炲姞涓嬮潰绫诲 
        #vi httpd.conf 
        LoadModule encoding_module modules/mod_encoding.so
        <IfModule mod_encoding.c>
             EncodingEngine on
             NormalizeUsername on
             SetServerEncoding GBK
             DefaultClientEncoding UTF-8 GBK GB2312
             AddClientEncoding "cadaver/" UTF-8 GBK GB2312
        </IfModule>

        7. 鏈鍚庨噸鍚痑pache鍗冲彲
        service httpd restart 

All posts

Other pages

鍙戣〃璇勮

鐢靛瓙閭欢鍦板潃涓嶄細琚叕寮銆 蹇呭~椤瑰凡鐢*鏍囨敞