安装Apache服务器,改端口为81的有关问题

WBOY
Release: 2016-06-13 12:04:12
Original
1547 people have browsed it

安装Apache服务器,改端口为81的问题
提示OS10013错误could not bind to address 0.0.0.0:80,看到网上有将httpd.conf改为listen 81的方法,试了下,启动服务器没有报错,但是访问localhost:81时浏览器提示找不到页面,这是什么问题呢?
------解决方案--------------------
除了 listen 81 修改外,还需要修改ServerName和VirtualHost的端口号。



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
    

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!