草原上的野狼

啸苍天,没日月,孤单影只; 忍地寒,耐绝境,经熔炼,将成大业!

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

    Apache httpd.conf的配置

NameVirtualHost *:8001
<VirtualHost *:8001>
    ServerAdmin   test@sina.com
    DocumentRoot  D:\projects\mfull_renewal\webapp\htdocs\i
    ServerName    test
    ErrorLog      logs
/error_log.mj
    CustomLog     logs
/access_log.mj common
    
    php_flag output_buffering On
    php_value output_handler mb_output_handler
    php_value default_charset Shift_JIS
    php_value mbstring.language Japanese
    php_flag mbstring.encoding_translation On
    php_value mbstring.http_input auto
    php_value mbstring.http_output Shift_JIS
    php_value mbstring.internal_encoding Shift_JIS
    php_value mbstring.substitute_character none
</VirtualHost>
#可以配置多个 ,
#
NameVirtualHost *:8001
#<VirtualHost *:8001>
# ...
#</VirtualHost>

    配置C:\WINDOWS\system32\drivers\etc\hosts 的配置

   
127.0.0.1       localhost
192.168.1.106   test
#可配置多个
#192.168.1.106 wolf.com
# ...

    访问此工程只需要:http:\\test\index.html 就OK了
   
posted on 2007-11-06 16:02  血狼  阅读(470)  评论(0)    收藏  举报