How Apache publishes a non-80-port Web site

Source: Internet
Author: User

Because the landlord previously learned is. NET natural Windows 80 port has been occupied by IIS, and then began to transfer php, download a WAMP integrated environment package to change the environment first, so that its port binding 8080 port, not students can refer to the landlord's blog

http://blog.csdn.net/zch501157081/article/details/50897480

But in learning to configure the virtual site is always a problem, and then after a toss, finally finished

First of all you mount 8080 port, then you configure http-vhosts.conf when your port name also to specify 8080 port



Second, configure host has no problem configuration, but you must be in the access must add 8080 ports, because the default is to go to the TCP80 port, of course, you can also change the TCP port number, access path for thinkphp.com:8080, if you do not add the port number you will enter the 80 port , which is the bound IIS.

So how do you get to a virtual site without adding a port number?
1. Add a layer agent, forward request, let it go to 8080 port
2. Change the TCP port number

A few noteworthy places

It's no use for you to add a direct port number directly to the host file, because you don't have to write any of the TCP 80 ports that he accesses.

If you comment out:: 1, then your access will be wrong, because the corresponding address can not be found

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.