Add another port instance to the web server [apache + php]

Source: Internet
Author: User
Tags apache different directory file find installation installation directory listen

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.