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


Deprecated: 鏂囦欢 娌℃湁 comments.php 鐨勪富棰 鑷増鏈 3.0.0 璧峰凡寮冪敤锛屼笖娌℃湁鍙敤鐨勬浛浠c 璇峰湪鎮ㄧ殑涓婚涓寘鍚竴涓 comments.php 妯℃澘銆 in /www/wwwroot/liguoqi.site/wp-includes/functions.php on line 6078

鍙戣〃鍥炲

鎮ㄧ殑鐢靛瓙閭鍦板潃涓嶄細琚叕寮銆 蹇呭~椤瑰凡鐢 * 鏍囨敞