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

Apache 配置

时间:2015-07-21 12:31:00      阅读:126      评论:0      收藏:0      [点我收藏+]

标签:

记录一下,Apache 关键配置,403等问题~

 1 # linux 下用户权限配置
 2 <IfModule unixd_module>
 3 #
 4 # If you wish httpd to run as a different user or group, you must run
 5 # httpd as root initially and it will switch.  
 6 #
 7 # User/Group: The name (or #number) of the user/group to run httpd as.
 8 # It is usually good practice to create a dedicated user and group for
 9 # running httpd, as with most system services.
10 #
11 User daemon
12 Group daemon
13 
14 </IfModule>
15 
16 # 目录权限配置 403
17 <Directory />
18     #AllowOverride None
19     #Require all denied
20     Order deny,allow
21     Allow from all
22 </Directory>
23 
24 # 多端口配置
25 Listen 8081 
26 Listen 8082 
27 Listen 8083
28 
29 # 站点配置
30 <VirtualHost *:9001> 
31     DocumentRoot "E:/php/wordpress" 
32     ServerName localhost 
33     ServerAlias localhost 
34     ErrorLog "logs/wordpress-error.log" 
35     CustomLog "logs/wordpress-access.log" common 
36 
37     <Directory "E:/php/wordpress"> 
38         Options Indexes FollowSymLinks 
39         AllowOverride All 
40         Order allow,deny 
41         Allow from all 
42     </Directory> 
43 </VirtualHost>

 

Apache 配置

标签:

原文地址:http://www.cnblogs.com/everyone/p/4663603.html

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