Articles of apache 2.2

在Apache中托pipedynamic内容的Web服务器的最佳操作系统?

我有自由select一个服务器的操作系统,所以我想把我的时间和精力花在学习一个平台上。 我的主要目标是在负载变重的时候尽可能地提高效率。 从效率来说,我的意思是从tcp / ip堆栈速度到线程处理以及任何可能影响繁忙的Web服务器的任何事情。 任何build议表示赞赏。

PHP-FPM + PHP-5.2.14 + NGINX – 给404

我一直在努力让PHP通过PHP-FPM工作。 我们的一台服务器被slowloris打了,是Apache不能处理它。 我得到了NGINX运行一切正常,并传递数据返回到Apache,但现在我试图去纯NGINX至less大部分的东西。 我从源代码安装了PHP-5.2.14,并用PHP-FPM修补了5.14,并configuration了ff: './configure' '-enable-fastcgi' '–enable-fpm' '–build=x86_64-redhat-linux-gnu' '–host=x86_64-redhat-linux-gnu' '–target=x86_64-redhat-linux-gnu' '–program-prefix=' '–prefix=/usr' '–exec-prefix=/usr' '–bindir=/usr/bin' '–sbindir=/usr/sbin' '–sysconfdir=/etc' '–datadir=/usr/share' '–includedir=/usr/include' '–libdir=/usr/lib64' '–libexecdir=/usr/libexec' '–localstatedir=/var' '–sharedstatedir=/usr/com' '–mandir=/usr/share/man' '–infodir=/usr/share/info' '–cache-file=../config.cache' '–with-libdir=lib64' '–with-config-file-path=/etc' '–with-config-file-scan-dir=/etc/php.d' '–disable-debug' '–with-pic' '–disable-rpath' '–with-pear=/usr/share/pear' '–with-bz2' '–with-curl' '–with-exec-dir=/usr/bin' '–with-freetype-dir=/usr' '–with-png-dir=/usr' '–enable-gd-native-ttf' '–without-gdbm' '–with-gettext' '–with-gmp' '–with-iconv' '–with-jpeg-dir=/usr' '–with-openssl' '–with-png' '–with-pspell' '–with-expat-dir=/usr' '–with-zlib' '–with-zlib-dir=/usr/include' '–with-layout=GNU' '–enable-exif' '–enable-ftp' '–enable-magic-quotes' '–enable-sockets' '–enable-sysvsem' […]

为什么不这个.htaccess文件工作?

最近,我的网站遭到来自各种机器人的数千个POST请求的攻击。 我决定find一种方法来阻止发送到我的网站的所有POST请求,并允许来自我的网站的所有POST请求,而不是采取阻止这些机器人的方法。 我想出了以下几点: 重写引擎 RewriteCond%{REQUEST_METHOD} POST RewriteCond%{HTTP_HOST}!。* mydomain.com。* RewriteRule ^。* – [F,L] 但由于某种原因,它不起作用。 有任何想法吗? 谢谢!

Apache缓慢通过http,快速通过https

我有一个运行Debian的Apache服务器。 我有这种非常奇怪的情况,加载一个页面需要约2至3倍的时间来加载超过HTTPS的HTTP。 该网站的主要用途是Magento,但我看到与我们已经加载在网站上的其他东西类似的结果。 我没有第一个线索,甚至可以看到我们的服务器,或者是什么问题。 有没有人有任何的见解,可能会发生什么,或在哪里看?

Ubuntu服务器 – Apache不会重新启动

我今天早上进来,我们的networking服务器没有运行,所以我closuresApache,并试图再次启动。 在这台服务器上至less有2-3周的时间没有触及httpd.conf,上次我重新启动它。 我试图重新启动服务器无济于事。 以下是我尝试启动apache2时得到的消息。 username:~$ sudo /etc/init.d/apache2 start * Starting web server apache2 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs …fail!

如何使用htaccess&apache重写/页面到/ xx / page?

想像一下三步跳跃的体育赛事,前两步完美到位,第三步跳入空中,永不回头,最终摔倒! 这就是这个问题归结为:) 第1 /somepage?ln=xx :当用户导航到/xx/somepage时,工作服务/somepage?ln=xx 。 # if user inputs nice urls /xx/somepage to serve page /someapge?ln=xx RewriteRule ^([az][az])/(.*) /$2?ln=$1 [L] 第二步:只有在给定语言的情况下才能进入主页/ xx / # if language xx given but no page given? then redirect to its home /xx/home RewriteRule ^([az][az])/?$ /$1/home [R=301,L] 第3步:碰撞 # if user inputs /somepage then redirect to default english: /en/somepage […]

如何将apache中的裸域redirect到www

我有多个裸域,我想redirect这些域名,使他们开始与www.redirecteddomain.com。 我有这个.htaccess文件在域上如何推广这个? RewriteEngine On RewriteCond %{HTTP_HOST} ^guvam\.com$ RewriteRule (.*) http://www.guvam.com$1 [R=301,L] RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ – [NC,L] RewriteRule ^.*$ index.php [NC,L]

Apache 2.2在哪里存储自定义错误,如果有的话?

我正在尝试在Apache 2.2设置上设置自定义错误页面(403,404等)。 我知道在IIS7.5页面存储在 的%SystemDrive%\的Inetpub \ custerr \ EN-US \ 404.htm 但是我不确定它们在Apache上的位置(甚至是它们是否存在)。 有一个.config文件,我需要改变或类似的东西?

build立我自己的CDN服务

我有两个服务器,都与自我领域第一www.myexample1.com第二www.myexample2.com 现在我想将www.myexample1.com的CDN设置为www.myexample2.com 但我不知道如何设置DNS或Apache,所以这两个服务器提供www.myexample1.com请求的文件 …我不需要解决数据库,会话或别的…但我需要知道,如何做,这两个服务器将可用作为www.myexample1.com

主机:1个Windows,1个Linux,1个Internet IP地址。 怎么样?

我有1个互联网IP地址。 我有2个物理networking服务器。 1 Windows IIS7托pipe3个网站。 主机头名称在IIS7中configuration。 这工作正常,直到我添加: 1 Linux(Ubuntu lucid)Apache2托pipe1个网站。 VirtualHost在Apache2中configuration。 我遵循以下步骤: http : //ubuntu-tutorials.com/2008/01/09/setting-up-name-based-virtual-hosting/ 两台服务器似乎在玩“拔河”。 这可能只是一个错误的configuration,或者是这种设置应该发生的问题?