当前位置:编程学习 > php >>

php虚拟机的配制

NameVirtualHost *:8001
<VirtualHost *:8001>
    ServerAdmin   test@janabiz.com
    DocumentRoot  D:projectsmobilejudgewebapphtdocs
    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教程,Php常用代码
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,