PHPnow实现多端口服务配置
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 [email protected] DocumentRoot "网站根目录" ServerName default:新端口号 ErrorLog logs/default-error_log</VirtualHost>
3.重启Apache。
立即学习“PHP免费学习笔记(深入)”;
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号