记录一下,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>