How to install the Apache server and change the port to 81

Source: Internet
Author: User
When the Apache server is installed and Port is changed to 81, the following error occurs: OS10013: cocould & nbsp; not & nbsp; bind & nbsp; to & nbsp; address & nbsp; 0.0.0.0: 80, httpd is displayed on the Internet. change conf to listen & nbsp; 81. after trying, the startup server does not report an error. However, when accessing localhost: 81, the browser prompts that the page cannot be found. what is the problem of installing the Apache server, change port to 81
The OS10013 error code "cocould not bind to address 0.0.0.0: 80" is displayed. conf changed to listen 81. after trying, there was no error when I started the server. but when I accessed localhost: 81, the browser prompts that the page could not be found. what is the problem?
------ Solution --------------------
In addition to the listen 81 modification, you also need to modify the ServerName and VirtualHost port numbers.



ServerName localhost: 81



ServerName localhost: 81
ServerAlias localhost
DocumentRoot/var/www/html

Options Indexes FollowSymLinks
AllowOverride all
Order Deny, Allow
Deny from all
Allow from all

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.