Add another port instance to the web server [apache + php tutorial]
/ *
Find your apache installation directory, find the httpd.conf file,
Search #listen this sentence, added below
listen 800
listen 801
listen 802
Here is the test, you can increase according to your needs different listening port, the apache web port opened, we have to configure the virtual fooled.
turn up
# <virtualhost *: 80>
# serveradmin webmaster@dummy-host2.phps tutorial hao.cublog.cn
# documentroot /www/docs/dummy-host2.phps tutorial hao.cublog.cn
# servername dummy-host2.phpshao.cublog.cn
# errorlog logs / dummy-host2.phpshao.cublog.cn-error_log
# customlog logs / dummy-host2.phpshao.cublog.cn-access_log common
# </ virtualhost>
Type this code, because the installation directory is not the same, there will be a small difference, we search directly for <virtualhost *: 80> line, and then increase below
<virtualhost 192.168.0.110:802> // 802 is that we increase the monitoring web port
serveradmin qq@sina.com
documentroot d: /www/www.jzread.com/
servername www.jzread.com
errorlog logs / dummy-host2.phpshao.cublog.cn-error_log
customlog logs / dummy-host2.phpshao.cublog.cn-access_log common
</ virtualhost> The last step, restart apache ok