PHPnow实现多端口服务配置
简介:这是PHPnow实现多端口服务配置的详细页面,介绍了和php,有关的知识、技巧、经验,和一些php源码等。
class='pingjiaF' frameborder='0' src='http://biancheng.dnbcw.info/pingjia.php?id=329783' scrolling='no'>1.首先在 X:\PHPnow\Apache-20\conf目录下找到httpd.conf文件
   找到 Listen 80,在下面建立Listen 新端口号
   然后 找到Include conf/extra/httpd-vhosts.conf 如果前面有分号将其去掉
2.在X:\PHPnow\Apache-20\conf\extra中找到 httpd-vhosts.conf
添加如下代码:
<VirtualHost *:新端口号>
    <Directory "网站根目录">
        Options -Indexes FollowSymLinks
        Allow from all
        AllowOverride All
    </Directory>
    ServerAdmin admin@localhost
    DocumentRoot "网站根目录"
    ServerName default:新端口号
   ErrorLog logs/default-error_log
</VirtualHost>
3.重启Apache。
 
                    
                 
                
            
         
 浙公网安备 33010602011771号
浙公网安备 33010602011771号