Articles of Apache的2.2

我如何logging有关cookies的信息?

我想添加cookie信息到我的Apache访问日志,即:电子邮件,用户名(cookie是由php文件创build的,而不是Apache)。 我可以添加一些类似于: \"%{cookieName}i\" log.conf文件 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined 如果这不起作用,我使用cookie日志并将其与访问日志结合起来,以及如何?

在达到MaxClients设置后,Apache停止服务

我有我的apache服务器configuration工人MPM如下: <IfModule mpm_worker_module> ServerLimit 20 ThreadLimit 50 StartServers 3 MaxClients 1000 MinSpareThreads 50 MaxSpareThreads 200 ThreadsPerChild 50 MaxRequestsPerChild 10000 </IfModule> 该服务器每天需要约200万个请求。 当请求到来时,Apache服务器将停止接受新的连接(浏览器无法连接)。 这个过程将保留在过程列表中。 内存使用率约为10%,CPU为0%。 看来apache服务器无法在应该的时候回收这些进程。 我发现与错误日志中的崩溃相关的东西: [Mon Aug 15 12:36:24 2011] [error] child process 11444 still did not exit, sending a SIGKILL [Mon Aug 15 12:36:24 2011] [error] child process 12090 still did not exit, […]

我可以在哪里findCentOS上的apache error_log

我想知道在哪里可以findapache的错误日志。 根据我读的网站,它应该在/ var / log / httpd / error_log但是我没有/ var / log上的httpd目录

如何添加exception到Apache反向代理规则

我试图设置一个Apache反向代理,以便请求被代理到8080上运行的另一个应用程序。但是,我想要一些目录直接服务,而不是转发到代理。 我想要的是: http:// localhost / – > http:// localhost:8080 / myapp http:// localhost / images – > / var / www / html / images http:// localhost / anything-else – > http:// localhost:8080 / myapp / anyhthing-else 我目前的httpd.conf是 ProxyRequests Off ProxyTimeout 600 ProxyPreserveHost On ProxyPass / http:// localhost:8080/ ProxyPassReverse / http:// localhost:8080/ RewriteEngine On RewriteRule […]

无效的命令“VirtualDocumentRoot”

我不确定为什么我得到以下错误时重新启动Apache: Invalid command 'VirtualDocumentRoot', perhaps misspelled or defined by a module not included in the server configuration Action 'start' failed. 它指的是这个片段: <VirtualHost *:80> ServerAdmin [email protected] VirtualDocumentRoot /local/www/staging/%1 ServerAlias *.staging.mydomain.com </VirtualHost> 我认为这是一个拼写错误,但它是从我的另一台服务器直接复制。 它在那里完美。 有任何想法吗?

如何添加虚拟主机,而不必重新启动Apache?

当我阅读关于如何创build/添加虚拟主机的教程时,最后一句总是像这样: 现在重新启动Apache,你就完成了! 现在,许多(大多数)networking主机有一个面板,允许你创build新的虚拟主机,几乎立即被激活…我相信他们没有重新启动Apache(使数百个其他用户不方便) ! 那么如何更改apache设置/添加虚拟主机等,并重新加载新的设置,而不实际重新启动Apache服务器?

设置Apache2 PATH环境variables

你如何设置Apache2的PATH环境variables? 我已经尝试使用SetEnv SetEnv PATH将其设置在/usr/sbin/envvars和httpd.conf中(并将它传递给SSI和PassEnv),但是它不会被携带。

什么会导致Apache显示一个特定目录的炸弹图标?

我的一个用户问我今天有一个问题,让我难.musecore : 为什么我们的Web服务器上的.musecore文件显示一个炸弹图标( )而不是文件夹图标? 更一般地,Apache如何决定要显示的图标,以及在哪里可以检查和/或更改该configuration?

为什么htop通过ps aux显示大量的apache2进程不?

我正在运行apache2和Ubuntu的networking服务器。 使用ps我只能看到一些运行的apache进程: ps aux | grep apache 但是,如果我htop ,我可以看到负载运行的apache2进程。 大概二十几个 为什么区别?

如何安装mod_headers

我怎么能激活/安装mod_headers在我的服务器上?