“Apache”的版本间差异
		
		
		
		
		
		跳到导航
		跳到搜索
		
				
		
		
	
| 无编辑摘要 | |||
| 第1行: | 第1行: | ||
| == | ==常见httpd.conf的配置== | ||
| ⚫ | |||
| ⚫ | |||
|  AllowOverride Authconfig |  AllowOverride Authconfig | ||
| *允许符号链接 | |||
|  Options FollowSymLinks |  Options FollowSymLinks | ||
| :*但是符号链接对应的目录应该有明确的<Directory>定义,另外还有注意[[SELinux]]的设置。 | :*但是符号链接对应的目录应该有明确的<Directory>定义,另外还有注意[[SELinux]]的设置。 | ||
| *运行列出目录中的所有内容 | |||
|  Options Indexes |  Options Indexes | ||
| *允许Userdir下到public_html模式 | |||
|  <IfModule mod_userdir.c> |  <IfModule mod_userdir.c> | ||
| 	UserDir enabled :这个很重要 | 	UserDir enabled :这个很重要 | ||
2013年12月18日 (三) 13:12的版本
常见httpd.conf的配置
- 允许.htaccess和.htpasswd密码保护
AllowOverride Authconfig
- 允许符号链接
Options FollowSymLinks
- 但是符号链接对应的目录应该有明确的<Directory>定义,另外还有注意SELinux的设置。
 
- 运行列出目录中的所有内容
Options Indexes
- 允许Userdir下到public_html模式
<IfModule mod_userdir.c>
UserDir enabled :这个很重要
UserDir public_html </IfModule>