Articles of Apache的2.2

Apache迫使我下载页面

我感觉有点失落,在ubuntu12.04上安装apache与suexec上的url单击我提示下载页面的消息我得到的消息是什么显示以下你已经select打开哪个是:application / x-httpd -php(395字节)

ApacheredirectDocumentRoot之外

我有一个文件结构如下: – Site – includes – page.php – pages – example.php – public – .htaccess .htaccess使用rewrite_module来解决大多数对page.php的请求。 RewriteRule ^ "../includes/page.php" [L] page.phpparsing原始请求,并在页面目录中包含正确的“页面”。 我想最初的请求解决/网站/公共,所以我有以下的Apacheconfiguration: <VirtualHost *:80> ServerName example.com DocumentRoot /Site/public </VirtualHost> 这会产生400个错误的请求错误,因为我试图redirect到DocumentRoot之外的文件。 我最终不希望用户能够直接访问公共之外的文件。 有没有一个很好的方法来指定,在执行方面,/网站是根,但在服务/网站/公众是根?

无法加载/etc/httpd/modules/mod_auth_basic.so

试图通过编译2.4.7从头开始升级Apache 2.2.3到2.4.7。 我得到以下错误, [root@test httpd-2.4.7]# /etc/init.d/httpd start Starting httpd: httpd: Syntax error on line 149 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_auth_basic.so into server: /etc/httpd/modules/mod_auth_basic.so: undefined symbol: ap_expr_str_exec [FAILED] 然而,该文件在那里, /etc/httpd/modules/mod_auth_basic.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped 我原来的2.2.3configuration文件是在/ etc / httpd中,我运行编译的命令是, cd apr-1.5.0/ ./configure –prefix=/usr/local/apr-httpd/ make make install cd ../apr-util-1.5.3/ ./configure […]

运行Apache的configtest时确定有问题的文件

运行https configtest时有没有办法确定有问题的文件? 例如,而不是: Warning: DocumentRoot [/var/www/whatever.com/webroot] does not exist Warning: DocumentRoot [/var/www/example.com/webroot] does not exist 我能看见: Warning: DocumentRoot [/var/www/whatever.com/webroot] does not exist in /etc/httpd/conf.d/file.conf Warning: DocumentRoot [/var/www/example.com/webroot] does not exist in /etc/httpd/conf.d/other_file.conf 我审查了帮助/ man并search,但找不到选项或等效的命令。

Apache访问日志奇怪的条目

我一直在我的Ubuntu服务器的CPU上负载很高,所以我正在检查Apache的访问日志。 我反复注意到这个条目几乎填满了访问日志。 任何想法这可能是什么? 我们运行了一个wordpress站点,插入了很多插件。 但是网站本身并没有真正开放,所以我们没有那么多的访问者。 209.236.116.42 – [10 / Aug / 2014:07:16:51 -0700]“POST /wp-login.php HTTP / 1.0”200 5088“ – ”“ – ”209.236.116.42 – – [10 / Aug / 2014:07:16:51 -0700]“POST /wp-login.php HTTP / 1.0”200 5088“ – ”“ – ”209.236.116.42 – – [10 / Aug / 2014:07:16:52 -0700] “POST /wp-login.php HTTP / 1.0”200 5088“ – ”“ […]

如何在Apache2中启用或禁用静态模块?

我在Apache2中安装了一些模块,在编译时启用。 命令httpd -M给我: core_module (static) authn_file_module (static) …snip… auth_basic_module (static) include_module (static) filter_module (static) deflate_module (static) …and so on… 有没有办法删除任何这些静态模块,或添加静态模块? (虽然我已经加载了so_module,所以我添加了静态模块并不是那么必要,我想知道如何在不重新编译服务器的情况下移除静态模块。

Apache修补程序区分大小写的域名

有没有这样的事情 http://yost.com/computers/apache-redirect/apache-patch.html 有没有这样的东西,但作为Apache的一部分,这个补丁是为1.3.9

Apache:使用子域设置本地testing服务器

我的桌面计算机上运行着XAMPP,我没有任何问题就可以做所有的工作。 http://localhost —> points to public_html http://site1.localhost —> points to site 1 http://site2.localhost —> points to site 2 http://site3.localhost —> points to site 3 在使用Apache的计算机上的Web浏览器中input上述URL效果很好,我可以在不同子域内的多个站点上工作。 但是现在我想要做的是将Apache和所有文件传输到局域网内的另一台Windows 7计算机上,但仍然能够从我的主开发机器上查看子域。 在新的托pipe机器上安装一个vanilla XAMPP,在我的开发计算机中input该机器的IP地址(例如192.168.1.10)会将我发送到主public_html文件夹。 但是,如何设置子域以便我可以在外部访问? 例如, http://site1.devmachine 谢谢你的帮助。

如何测量从我的Apache Web服务器的上传/下载速度?

我希望看到谁访问了我的服务器,以及他们下载网站的速度。 如何才能做到这一点?

是mod_evasive最好的预防DDOS攻击

我已经有IPTables阻止所有不必要的stream量。 mod_evasive是mod_evasive的最好的解决scheme吗? 你在你的服务器上使用什么?