Articles of apache 2.2

如何维护与同一服务器上的两个网站的login状态?

我已经为我的部门build立了两个基于Apache的gerrit服务器。 与端口8660和8088分开。 但我发现,当有人login8088时,8660会自动注销,签证。 我怎样才能同时login这两个gerrit?

在Apacheconfiguration文件的其他部分使用DocumentRoot作为variables

有没有办法使用DocumentRoot作为Apache的网站configuration文件的其他部分的variables? 如下所示: DocumentRoot /var/www/myNiceRoot <Directory $DocumentRoot/mySubDir> … </>

设置让我们encryption我的域名和所有的子域名

我有一个服务器(Debian 7 Wheezy和Apache 2.2),托pipe我的域名,以及一些源于此的子域名。 目前,我已经将这些全部设置为default conf文件作为单独的虚拟主机。 例如我主办example.net并有forum.example.net和game.example.net : <VirtualHost *:80> ServerName example.net DocumentRoot /var/www <Directory /var/www> Options -Indexes </Directory> </VirtualHost> <VirtualHost *:80> ServerName forum.example.net DocumentRoot /var/www/forum <Directory /var/www/forum> Options -Indexes </Directory> </VirtualHost> <VirtualHost *:80> ServerName game.example.net DocumentRoot /var/www/game <Directory /var/www/game> Options -Indexes </Directory> </VirtualHost> 我想设置这些都使用HTTPS,所以安装让我们encryption来做到这一点。 当我经历了安装部分,我只是想game.example.net先设置一个域名,以确保我没有game.example.net任何东西,所以最初使用game.example.net 。 我得到了这个工作很好,现在想要推出它的其他领域, forum.example.net和example.net 。 我尝试了一下这里的一些步骤,所以跑了letsencrypt-auto –apache -d example.net -d […]

总访问速度非常快 – Apache mod_status

我在启用扩展状态的Apache 2上启用了mod_status模块。 但是,当我不断检查服务器状态页面时,总访问以奇怪的方式增加(如每1秒100),虽然我没有任何stream量进入服务器,同时服务器状态不是在下面的请求列表中显示任何请求。 我如何logging任何http访问,并查看来自哪里的stream量以及哪些内容。

如何在Centos 6中删除Apache webserver

我使用Centos 6 64位。 我已经通过Directadmin安装了反向代理NGINX + Apache。 但是我想彻底删除Apache服务并使用NGINX。 我怎样才能做到这一点?

Apache:实际版本发布date与服务器构builddate?

在我的Linux,我有httpd (Apache2),我很好奇它的版本发布date。 所以我做了: #httpd -v Server version: Apache/2.2.15 (Unix) Server built: Dec 15 2015 15:50:14 但是,当我谷歌有关“Apache 2.2.15发布date”,根据Apache官方版本公告归档,它是从06 Mar 2010 ,这是非常老的。 参考: 那么请让我明白哪个date是我的Apache实际更新的? 谢谢你们所有的! 🙂

<IfModule>在.htaccess中做什么?

<IfModule mod_expires.c> ExpiresActive On ExpiresByType application/javascript "access 1 week" ExpiresByType text/css "access 1 week" </IfModule> 我使用了很多这些在我的.htaccess文件来设置caching,放气,接受编docker和东西。 我注意到,如果我删除打开和closures标签,一切都继续工作。 这些做什么,只要一切似乎正常工作,删除它们是安全的?

Apache语法错误

我已经添加了: IncludeOptional sites-enabled/*.conf 到我的Apacheconfiguration。 现在给我一个语法错误。 我正在看的指南告诉我把它添加到文件的最后,这是我做的。 我正在运行CentOS 6.5和Apache 2.2.15。 我得到的错误消息是: Invalid command 'IncludeOptional', perhaps misspelled or defined by a module not included in the server configuration 难道我的Apache已经过时了吗? 有人可以帮我吗?

主域的redirect正在被子域触发

我有我的服务器上configuration的域redirect到我的网站的HTTPS版本的所有请求都工作正常。 几天前,我添加了一个现在被redirect到主域的子域。 这里是Apache的configuration文件。 httpd.conf(系统生成,不由我编辑) <VirtualHost my.ip:80> ServerName bwdmedia.net ServerAlias bestwebsitedesigners.in bestwebsitedesigners.net bwdmedia.co bwdmedia.org www.bestwebsitedesigners.in www.bestwebsitedesigners.net www.bwdmedia.co www.$ DocumentRoot /home/bwdmedia/public_html ServerAdmin [email protected] UseCanonicalName Off CustomLog /usr/local/apache/domlogs/bwdmedia.net combined CustomLog /usr/local/apache/domlogs/bwdmedia.net-bytes_log "%{%s}t %I .\n%{%s}t %O ." ## User bwdmedia # Needed for Cpanel::ApacheConf UserDir enabled bwdmedia <IfModule mod_suphp.c> suPHP_UserGroup bwdmedia bwdmedia </IfModule> <IfModule !mod_disable_suexec.c> <IfModule !mod_ruid2.c> SuexecUserGroup bwdmedia […]

configurationHAProxy根据url_param路由stream量

我对HAProxy非常陌生。 我花了几个小时试图找出如何做到这一点,但没有得到任何线索。 我的要求是这样的: 如果请求的终点是/ special,那么我需要检查URL_PARAM。 例如:localhost / special?id = 10根据ID,我需要将它路由到3个服务器之一。 如果id <= 3 server1,如果id> 3并且id <= 6 server2 else server3。 如果端点不是所有3台服务器之间的特殊循环。 我如何实现这2级平衡?