Home > Backend Development > PHP Tutorial > PHPnow兑现多端口服务配置

PHPnow兑现多端口服务配置

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 11:00:08
Original
1031 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 [email&#160;protected]    DocumentRoot "网站根目录"    ServerName default:新端口号   ErrorLog logs/default-error_log</VirtualHost>
Copy after login

3.重启Apache。

Related labels:
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
Latest Issues
nginx conf setting problem
From 1970-01-01 08:00:00
0
0
0
nginx conf global parameter configuration
From 1970-01-01 08:00:00
0
0
0
python - oslo_config
From 1970-01-01 08:00:00
0
0
0
php - nginx cannot be started, please help!
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template