我是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**
Run Code Online (Sandbox Code Playgroud)
一旦我进入上面的行,当我刷新网页时它会给我这个错误
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 …Run Code Online (Sandbox Code Playgroud) 我试图在centos 6.5上创建一个简单的rpm包..但我无法完成它,因为它给我错误..我已经遵循这两个线程.. 来自/var/tmp/rpm-tmp.b1DgAt的错误退出状态(%建)和从/var/tmp/rpm-tmp.ajKra4(%PREP)坏退出状态 ..但没有运气...
我无法弄清楚我在这里缺少什么..请帮我解决这个问题..
这是我的
Name: test
Version: 1.0
Release: 1%{?dist}
Summary: A test package
Group: Testing
License: GPL
URL: http://www.yahoo.com
Source0: test-1.0.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: /bin/rm, /bin/mkdir, /bin/cp
Requires: /bin/bash, /bin/date
%description
this is the test package build for rhche
%prep
%setup -q
%build
./configure
%install
rm -rf $RPM_BUILD_ROOT
make -p $RPM_BUILD_ROOT/usr/local/bin
cp myscriptdate $RPM_BUILD_ROOT/usr/local/bin
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%attr(0755,root,root)/usr/local/bin/myscriptdate
%changelog
* Thu Dec 09 2010 Forrest <forrest@redhat.com> 1.0-1
-Initial RPM
-Added …Run Code Online (Sandbox Code Playgroud)