apache安装之后的配置
来源:互联网 发布:触摸屏图片展示软件 编辑:程序博客网 时间:2024/05/29 18:28
apache安装之后的配置:
apache安装之后的配置,这里解决所有疑惑。
yum install httpd
vi /etc/httpd/conf.d/welcome.conf
修改为如下:
<LocationMatch "^/+$">
# Options -Indexes
# ErrorDocument 403 /error/noindex.html
</LocationMatch>
vi /etc/httpd/conf/httpd.conf
内容末尾增加:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName javasvn.aabbb.cn
DocumentRoot /wwwroot/
<Directory /wwwroot/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
</Directory>
</VirtualHost>
service httpd restart
Forbidden
You don't have permission to access / on this server.
出现以上提示是防火墙的事,解决方法:
setenforce 0
如果配置两个VirtualHost,结果所有配置都以第一个配置生效怎么办?
把/etc/httpd/conf/httpd.conf中
#NameVirtualHost *:80前的注释去掉
多个VirtualHost共存的情况下,第一个配置是默认配置。
apache安装之后的配置,这里解决所有疑惑。
yum install httpd
vi /etc/httpd/conf.d/welcome.conf
修改为如下:
<LocationMatch "^/+$">
# Options -Indexes
# ErrorDocument 403 /error/noindex.html
</LocationMatch>
vi /etc/httpd/conf/httpd.conf
内容末尾增加:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName javasvn.aabbb.cn
DocumentRoot /wwwroot/
<Directory /wwwroot/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
</Directory>
</VirtualHost>
service httpd restart
Forbidden
You don't have permission to access / on this server.
出现以上提示是防火墙的事,解决方法:
setenforce 0
如果配置两个VirtualHost,结果所有配置都以第一个配置生效怎么办?
把/etc/httpd/conf/httpd.conf中
#NameVirtualHost *:80前的注释去掉
多个VirtualHost共存的情况下,第一个配置是默认配置。
0 0
- apache安装之后的配置
- 安装ThinkPHP之后的配置
- 在apache和php安装之后进行连接配置,
- apache的安装配置
- CentOS安装之后的系统安全配置
- 安装fedora19之后的一些配置
- CentOS安装之后的系统安全配置
- Bugzilla安装完之后的配置
- Maven安装之后的优化配置
- sublime安装完毕之后的常用配置
- Kali 安装之后的常用配置
- MongoDB数据库安装完成之后的配置
- apache的安装配置 & Tomcat 安装配置
- Apache的安装与配置
- SVN+APACHE的安装配置
- Apache的安装与配置
- apache的安装和配置
- windows apache的安装配置
- linux c程序中获取shell脚本输出
- LeetCode Combinations
- Linux中安装php
- 单层网络模型下对无监督特征学习算法的分析
- spring security权限管理手册升级至spring security-3.1.3
- apache安装之后的配置
- 图形化的机房综合资源管理系统功能简介
- 黑马程序员-学习日志-文件的分割与合并
- delphi boolean 类型转成string型
- Linux设备驱动之pci设备的枚举(linux初始化时PCI设备识别)
- Effective C++ 8. 定制 new 和 delete
- Java解析XML
- java文件按行读写,解决中文乱码
- 一个CURL模拟登陆论坛的脚本+cookie伪造的方法