PHPnow兑现多端口服务配置

WBOY
Release: 2016-06-13 13:03:26
Original
1069 people have browsed it

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 admin@localhost
    DocumentRoot "网站根目录"
    ServerName default:新端口号
   ErrorLog logs/default-error_log
</VirtualHost>
Copy after login

3.重启Apache。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template