作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我是stackowerflow和apache的新手,如果我把这个线程放在错误的地方,我很抱歉..
有人可以帮我避免内部服务器错误吗? htaccess | apache2ctl |回溯
我想要做的是将这些行添加到 htaccess.. 我的 htaccess 和 webserve 在没有这些行的情况下工作正常.. 但我需要将它们添加到 htaccess
RewriteEngine on
RewriteCond %{REQUEST_METHOD}^(TRACE|TRACK)
RewriteRule .* - [F]
Header set X-Frame-Options Deny
Header always append X-Frame-Options SAMEORIGIN**
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.2.14 (Ubuntu) Server at 192.168.176.130 Port 80
最佳答案
首先,您需要启用所需的 apache 模块:
a2enmod rewrite headers
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_METHOD}^(TRACE|TRACK)
RewriteRule .* - [F]
</IfModule>
<IfModule mod_headers.c>
Header set X-Frame-Options Deny
Header always append X-Frame-Options SAMEORIGIN**
</IfModule>
service apache2 restart
tail /var/log/apache2/error.log
关于apache - 有人可以帮我避免内部服务器错误吗? htaccess | apache2ctl |回溯,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20611893/
嗨,我是第一次玩 Pig,我很好奇如何处理将一个字段拆分成多个其他字段。 我有一个包,A,如下图: grunt> Dump A; (text, text, Mon Mar 07 12:00:00 CD
如何添加架构中未定义的固定字段(例如日期或月份)?我运行了以下 pig 脚本以将固定日期添加到我的结果表中,并收到以下错误消息:Invalid field projection。方案中不存在投影字段
我是一名优秀的程序员,十分优秀!