码迷,mamicode.com
首页 > Web开发 > 详细

apache2.4域名配置参数

时间:2015-04-17 17:31:01      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:

apache2.4和 2.2版本的配置有区别

2.4的配置如下

<VirtualHost *:80>
DocumentRoot /www/web/project
ServerName www.domain.com
ServerAlias domain.com
directoryindex index.html index.php
defaulttype text/html
addtype application/x-httpd-php .html
adddefaultcharset utf-8

<Directory /www/web/project/>
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

 


2.2的配置如下

<VirtualHost *:80>
DocumentRoot /www/web/project
ServerName www.domain.com
<Directory "/www/web/project">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

apache2.4域名配置参数

标签:

原文地址:http://www.cnblogs.com/jackspider/p/4435162.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!