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