Articles of apache 2.2

Linux中“Treason Uncloaked”的含义是什么?

在Linux的Apache服务器上,有时会有消息说TCP: Treason uncloaked! 。 ServerFault上有以前的问题,解释了这个问题的修复。 但是,有没有人知道这个错误信息的含义? 为什么错误匹配的TCP消息会引起这样一个不明确的错误消息? 这个消息是否有一些背后的历史?

在Apache中,.htaccess文件覆盖mod_rewrites的httpd.conf文件吗?

在我的Apache httpd.conf文件中,我在VirtualHost标签中有这个声明。 RewriteEngine On RewriteCond %{HTTP_HOST} !^www.shanestillwell.com$ [NC] RewriteRule ^(.*)$ http://www.shanestillwell.com/$1 [L,R=301] 而这个在我的.htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] 我的httpd.conf的规则似乎被忽略。 .htaccess的规则是否清除了httpd.conf重写规则?

有关httpd.conf AllowOverride设置的安全问题

我在一个网站上工作,我将需要在.htaccess中使用重写命令。 它不工作,最后追溯了我需要设置的问题 在我的Apache httpd.conf中“AllowOverride All” 我想知道是否有任何安全问题,当我从“AllowOverride None”更改为“AllowOverride All”时,我应该知道? 谢谢!

无法打开锁数据库 – Apache WebDAV安装程序

我使用Apacheconfiguration了WebDAV服务器。 这是我的configuration: DAVLockDB /var/www/DAVLock.db <Location /majid> AllowOverride None Options +Indexes DAV On AuthUserFile /var/www/users.db AuthName Authentication AuthType Basic <Limit GET PUT DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK> Require user majid </Limit> </Location> Alias /majid /var/www/dav/majid /var/www/DAVLock.db由apache用户和组拥有。 我可以通过浏览器访问WebDAV共享。 我已经在Windows XP SP3中configuration了WebFolder 。 但是我无法创build文件和文件夹。 error_log文件说: [Tue Oct 11 17:05:12 2011] [error] [client 192.168.1.2] File does […]

SELinux:让Apache在CentOS上与MySQL交谈

所以我把MySQL连接到/ opt / chroot / mysql,并且一切正常。 Apacheconfiguration正常,也运行良好。 我创build了一个连接到MySQL Daemon的小PHP脚本,并configuration了PHP,以便使用的默认套接字是chroot。 当SELinux被禁用时,脚本能够正常连接。 但是,启用SELinux时,脚本无法连接(错误号为13),审计日志告诉我SELinux拒绝了请求。 我发现每个教程都解决了这个问题,告诉我禁用SELinux。 这不是我想要做的,所以请不要提示! 我想要一个解决scheme,同时启用SELinux …我假设一个必须存在… 我想我可能不得不改变mysql文件的SELinux上下文,但我不知道如何改变它们,使其工作。

Apache2 +禁用默认虚拟服务器

这是我第一次尝试自己设置服务器。 到目前为止,一切都很好。 我添加了一个新的虚拟服务器,并更改了我的域的Alogging,现在按预期工作。 但是:我想“阻止”访问默认的www目录(在我的情况下var/www )。 现在,当我input服务器IP而不是域,我到达默认的www dir – 我想禁用它。 我不想设置redirect,但只是禁止用户,search引擎等浏览任何东西时,他们去http://myip/ 目前我正在做的诀窍是添加一个空的index.html ,但我想实际上阻止所有的请求,只允许访问我的域名(他们是在像“ var/www/sites/domain.com/www ” var/www/sites/domain.com/www ) ) 我希望你明白我的意思 – 我的英语很烂:/ PS,因为我安装了webmin,我通过http://myIp:webminPort访问它 – 我想我其实只想阻止端口80,但不知道这个…

在Apache服务器上启用HTTP DELETE请求

我需要configuration我的服务器以允许http删除方法。 目前,当我尝试进行此调用时出现以下错误: HTTP/1.1 405 Method Not Allowed Date: Mon, 11 Apr 2011 20:56:23 GMT Server: Apache/2.2.17 (Win32) PHP/5.3.5 Allow: GET,HEAD,POST,OPTIONS,TRACE Content-Length: 233 Keep-Alive: timeout=5, max=98 Connection: Keep-Alive Content-Type: text/html; charset=iso-8859-1 我已经search了很多,而且还没有能够想出如何configuration服务器来允许这个请求的答案。 有人请帮忙,因为它已经停止了我的项目。

Apache在升级到OpenSuse 12.1后不能启动

几天前,我从openSuse 11.04升级到openSuse 12.1在线升级。 现在,如果尝试启动Apache服务器 – sudo /etc/init.d/apache2 start 它给错误 – redirecting to systemctl Job failed. See system logs and 'systemctl status' for details 我也检查 – rtdp@linux-vai9:~> systemctl status apache2.service apache2.service – apache Loaded: loaded (/lib/systemd/system/apache2.service; disabled) Active: failed since Tue, 06 Dec 2011 13:21:11 +0530; 3min 54s ago Process: 2688 ExecStart=/usr/sbin/start_apache2 -D SYSTEMD -k start […]

得到一个403错误

不断得到一个403错误。 You don't have permission to access /index.html on this server. 日志文件: (13)Permission denied: access to /index.html denied (13)Permission denied: access to /favicon.ico denied 目录权限(/ home / www / eric / cascade) -rwxr-xr-x 1 eric www 193 Jan 28 17:38 .htaccess drwxr-xr-x 2 eric www 4096 Jan 28 18:27 images -rwxr-xr-x 1 eric www 3715 […]

从php脚本运行git pull

我正在尝试使用Git,GitHub和SSH的完美工作stream,但似乎我无法运行git pull 。 我试过git status ,这很好。 当我git pull 2>&1我得到: 错误:无法打开.git / FETCH_HEAD:权限被拒绝 我试图chmod .git目录到777没有运气。 当我从浏览器运行whoami ,它显示我: apache —编辑— 我只是做了chown apache:apache -R .git ,现在我得到: 无法创build目录“/.ssh”。 主机密钥validation失败。 致命的:远端意外挂断