首页 > 开发 > Apache > 正文

Apache 添加虚拟目录注意事项

2020-10-12 18:50:24
字体:
来源:转载
供稿:网友

添加虚拟目录 

  1. <IfModule alias_module>  
  2. Alias /sww/ "C:/xampp/htdocs/test/"  
  3. </IfModule> 

出现限制权限访问, 

Access forbidden! You don't have permission to access the requested object. It is either read-protected or not readable by the server. 

If you think this is a server error, please contact the webmaster. 

Error 403 localhost 2011/8/26 17:36:49 

Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1

需添加目录设置,代码如下:

  1. <Directory "C:/xampp/htdocs/test/">  
  2. AllowOverride None  
  3. Options None  
  4. Order allow,deny  
  5. Allow from all  
  6. </Directory> 

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表