centos7搭建http服务器__指向外部地址
来源:互联网 发布:新疆公路计价软件 编辑:程序博客网 时间:2024/06/17 04:38
今天准备centos7上搭建http服务器,遇到一个问题,花了两三个小时的时间才解决掉。
使用yum安装了http服务后,编辑/etc/httpd/conf/httpd.conf ,启动http服务,打开浏览器,提示出错误信息:
Forbidden
You don't have permission to access / on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
遇到这个问题让我很郁闷,网上百度的解决方式都是编辑配置文件,修改httpd.conf成 Allow from all
- <Directory />
- Options Indexes FollowSymLinks
- AllowOverride None
- Allow from all
- </Directory></span>
<Directory />部分Require all denied
AllowOverride none
Require all denied
</Directory>改成<Directory />
AllowOverride none
Require all granted
</Directory>然后重启httpd服务,这样就可以了。
1 0
- centos7搭建http服务器__指向外部地址
- centos7下svn服务器搭建并配置http
- centos7 svn服务器搭建
- centos7 搭建ftp服务器
- centos7 搭建SVN服务器
- centos7 搭建SVN服务器
- Centos7 Samba服务器搭建
- Centos7搭建SVN服务器
- CentOS7搭建SVN服务器
- 实验室CentOS7服务器搭建
- CentOS7 搭建FTP服务器
- Centos7搭建SVN服务器
- CentOS7 搭建Git服务器
- Centos7 搭建SVN服务器
- centos7搭建openvpn服务器
- CentOS7 搭建Apache服务器
- CentOS7 搭建FTP服务器
- centos7搭建pptp服务器
- TabLayout的简单使用
- 【2】机器学习实战 第三章 决策树的构造
- hdu5468 Puzzled Elena(容斥 莫比乌斯反演)
- 3
- 关于BeanUtils.copyProperties的用法和优缺点
- centos7搭建http服务器__指向外部地址
- PCI IO操作
- 64位系统下的ODBC配置注意事项
- vijos P1495笨小猴
- 代码笔记 | 用C#实现跟CI里面的加密解密
- Spring-Bean初始化顺序
- 最大子序列和问题
- SQL Server SQL性能优化之参数化
- cisco 2600路由器忘记密码