php虚拟机的配制

NameVirtualHost *:8001
<VirtualHost *:8001>
    ServerAdmin   [email protected]
    DocumentRoot  D:/projects/mobilejudge/webapp/htdocs
    ServerName    lyd.mobilejudge.com
    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>

1. apache.conf 中配置成这样,
2. 然后在windows/ system32/drivers/etc/hosts  中加入域名
本机IP  lyd.mobilejudge.com

你可能感兴趣的:(php虚拟机的配制)