Options ExecCGI is off in this directory: /Tool/www/samba
2016-01-05 19:09
639 查看
利用apache搭建的Samba server 利用changepassword组件用户自行更改密码环境:
访问:http://192.168.25.57/samba/changepassword.cgi 报403错误
/usr/local/apache2/bin/apachectl -t #语法检查
刷新浏览器正常访问.
访问:http://192.168.25.57/samba/changepassword.cgi 报403错误
[root@Linux9 samba]# curl -I 192.168.25.57/samba/changepassword.cgi HTTP/1.1 403 Forbidden Date: Tue, 05 Jan 2016 08:49:56 GMT Server: Apache/2.4.17 (Unix) PHP/5.5.9 Content-Type: text/html; charset=iso-8859-1查看apache安装程序目录错误日志:
cat /usr/local/apache2/logs/error_log [Tue Jan 05 18:29:02.313632 2016] [cgid:error] [pid 29240:tid 3075713936] [client 192.168.30.228:59435] AH01262: Options ExecCGI is off in this directory: /Tool/www/samba/changepassword.cgi提示找不到
off in this directory: /Tool/www/samba/changepassword.cgi #找不到该配置文件编辑apache主配置文件:
213 DocumentRoot "/usr/local/apache2/htdocs" 214 <Directory "/Tool/www/samba"> #改成changepassword安装目录 215 # 216 # Possible values for the Options directive are "None", "All", 217 # or any combination of: 218 # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews 219 # 220 # Note that "MultiViews" must be named *explicitly* --- "Options All" 221 # doesn't give it to you. 222 # 223 # The Options directive is both complicated and important. Please see 224 # http://httpd.apache.org/docs/2.4/mod/core.html#options 225 # for more information. 226 # Options Indexes FollowSymLinks ExecCGI执行/usr/local/apache2/bin/apachectl restrt #重启apache
/usr/local/apache2/bin/apachectl -t #语法检查
刷新浏览器正常访问.
相关文章推荐
- Pull is not possible because you have unmerged ...
- CISCO交换机概览
- 攻击CISCO路由器
- IIS漏洞整理大全
- IIS配置文件隐患
- 解决Default storage engine (InnoDB) is not available导致mysql无法启动的修改办法
- javascript select options 排序(保持option 对象完整性)
- js 解决“options为空或不是对象”
- C#中is和as用法实例分析
- C#中的is和as操作符区别小结
- C#中is与as的区别分析
- IIS访问ASP页面时报错The requested resource is in use.的解决办法
- jquery使用$(element).is()来判断获取的tagName
- SQL中IS NOT NULL与!=NULL的区别
- WHOIS类的修改版
- 远程分析IIS设置
- javascript Select标记中options操作方法集合
- 脚本中出现 window.open() access is denied - 拒绝访问 情况一则及分析
- apache的AllowOverride以及Options使用详解
- js给selected添加options的方法