Articles of apache 2.2

关于Nagios Web UI的奇怪扩展信息

以下是当我点击任何服务/主机扩展信息时的屏幕截图: 顶部的怪异信息: 行的内容以__gmon_start_libc.so…开头: __gmon_start__libc.so.6fflushstrcpy__rawmemchrgmtime_rexitreaddirfopenstrrchr__strdupclosedirstrncpyputsputcharreallocstdinstrpbrklocaltime_rgmtimestrtokmmapfgetscallocstrlenmemsetstrstr__errno_locationstdoutmemcpyfcloserand__strtol_internalmallocstrcatstrcasecmpasprintfopendirgetenvsscanfsystemmunmapstrncasecmp__fxstatstrncatfreadlocaltimestrchrmktimeqsort__strtod_internal__ctype_toupper_loc__ctype_tolower_loc__xstatstrcmpstrerror__libc_start_mainsnprintf__strtoul_internalfreeGLIBC_2.3GLIBC_2.2.5 和格式不好的菜单在底部: 点击任何服务命令,它会响应“400错误请求”错误。 Apache中的configuration: <VirtualHost *:80> ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin" ServerName xx ErrorLog logs/nagios.error_log <Directory "/usr/local/nagios/sbin"> Options ExecCGI AllowOverride None Order allow,deny Allow from all </Directory> Alias /nagios "/usr/local/nagios/share" <Directory "/usr/local/nagios/share"> Options None AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost> Apache的错误日志中没有任何与此相关的东西。 我已经更新到最新版本3.3.1: nagios -v Nagios Core 3.3.1 Copyright (c) 2009-2011 Nagios […]

重新编译PHP,现在Apache不parsingPHP文件

我今天早些时候重新编译了PHP,现在当您在浏览器中访问PHP页面时,Apache将显示其源代码而不是parsing它。 我是否需要重置一些configuration或重新编译Apache? 这是在CentOS 5.5与Apache 2.2和PHP 5.2.17

在Linux上安装PHP

我正在尝试设置与oci8支持的PHP。 我认为我已经configuration所有正确的开始之前oci,这里是我如何尝试开始安装: ./configure -prefix=/common_share/APACHE/server –with-apxs2=/common_share/APACHE/server/bin/apxs ./configure –with-oci8=instantclient,/common_share/APACHE/oracle-cli –with-libxml-dir=/common_share/APACHE/libxml –with-config-file-path=/common_share/APACHE/php/php.ini 我没有root访问权限,所以我必须手动安装。 反正我开始make install后得到的错误是: /usr/bin/ld: skipping incompatible /common_share/APACHE/oracle-cli/libclntsh.so when searching for -lclntsh /usr/bin/ld: cannot find -lclntsh collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 我不知道那里出了什么问题,接下来该怎么做。 任何人有类似的问题,并解决它?

我如何重置Apache的RewriteCond指令?

我有一些像这样的Apacheconfiguration: # Image hotlinking rule RewriteCond %{HTTP_REFERER} ^http://badsite\.com/ RewriteRule .*/static/artwork/.*\.(jpg|png)$ /static/images/hotlink.png [L] # Redirects RewriteRule ^static/artwork/(.+)$ http://cdn.mysite.com/artwork/$1 [L,R=301] # CodeIgniter RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php/$1 [L] 它应该做到以下几点: 如果图片请求来自badsite.com ,请将其屏蔽并显示热链接图片。 如果定期请求映像,则redirect到cdn子域上托pipe的映像。 否则,如果请求不是文件或目录,则加载一个网页(通过CodeIgniter)。 不过,我认为第一个RewriteCond应用于redirect规则,而不是盗链规则,因为来自该引用者的图像请求被redirect到CDN,而不是盗链图像。 Apache文档 (本节的底部)中的示例意味着换行符会停止RewriteCond应用,但这不会发生。 有没有办法“重置” RewriteCond规则,或者在我的configuration中有一些其他的错误?

使用Apache文档的符号链接有哪些性能问题

我试图find一个现有的问题,但没有find一个好的匹配。 作为我面向公众站点的部署过程的一部分,我使用符号链接在Web应用程序的各个版本之间进行交换。 例如,我有一个虚拟主机abc.com这里有一个docroot: /var/www/abc.com docroot本身(/var/www/abc.com)是应用程序的web访问目录(/var/www/package/buildX/web)的符号链接 当我部署一个新的构build时,我只需将其replace为另一个符号链接即可。 我的问题是,什么是性能开销(或担心我应该有)使用符号链接的Apache docroot

如何完全禁用Apache访问日志?

我在Windows Server 2003,Apache 2.2上运行WAMP服务器,我想完全禁止写入访问日志。 如果我可以做以下事情,那将会很整洁,但是我在Windows上: CustomLog "|/dev/null" common 所有我得到的错误日志是“pipe道日志程序”/ dev / null“意外失败”,虽然我有点期待这… 有没有一个Windows替代这个或任何其他方式只是禁用写访问日志?

Strace Apache进程输出显示24秒等待?可能是什么原因?

对两个系统调用之间执行24秒的apache儿童执行strace。我怎样才能确定是什么原因导致的这种行为。看起来像两个孩子都采取几乎相同的时间(24.7和23.92)秒。 我们正在使用php5和MySQL 5的Apache prefork / var / lib / php5 /是php会话文件夹 apache children1的strace输出与processid -20539 ps -u www-data | grep apache2 | awk'{print'-p“$ 1}'| xargs strace -o /strace/strace.log -ff -s4096 -r 20539 0.000064closures(13)= 0 20539 0.000060 open(“/ var / lib / php5 / sess_9t2cvnvdoruh666rjpm515idm0”,O_RDWR | O_CREAT,0600)= 13 20539 0.000065 flock(13,LOCK_EX)= 0 20539 24.711888 fcntl(13,F_SETFD,FD_CLOEXEC)= 0 20539 […]

如何将Apache服务器的SSL证书传输到NGINX服务器

如何将Apache服务器的SSL证书传输到NGINX服务器? 任何帮助深表感谢。

信号分段在特定的URL访问之后出现故障

在我的PHP程序中,当我访问特定的URL(POST某些数据)时,请求已被中止,并且此日志出现在Apache error.log中: WARNING: HOME is not set, using root: / [Thu Sep 13 22:49:47 2012] [notice] child pid 32111 exit signal Segmentation fault (11) 有什么问题?

Subversion的Apache模块是否可以使用html内容types提供html文件而不使用svn:mime-type属性?

我知道,如果您将.html文件中的svn:mime-type Subversion属性设置为text/html那么当通过Apache httpd中的Subversion模块在浏览器中查看文件时,它将与Content-Type: text/html标题,使浏览器呈现为HTML而不是纯文本。 但是,我正在寻找一种方法来执行此操作, 而不使用svn:mime-type属性。 我知道你可以configuration你的svn客户端自动添加属性 – 这不是我想要的,因为我不想确保所有的用户都有这些设置。 我也知道如果没有设置属性,我可以创build一个拒绝提交的预提交钩子,以强制用户设置属性 – 我可能会回到那个,但我正在寻找一些东西侵入。 我也知道,我可以使用post-commit挂钩在服务器端自动添加属性。 我宁愿不这样做(因为用户必须在提交后立即更新,而且这不是微不足道的) – 我正在寻找一个更好的select。 也许在Apache服务器中有重写规则的东西?