Articles of apache 2.2

libapache2-mod-auth-curb:访问/失败,原因:用户'd_inevitable'不符合'require'要求允许用户/有效用户访问

我不知道这是否是libapache2-mod-auth-curb,apache2-mpm-itk或apache2。 错误信息本身是非常神秘的: access to / failed, reason: user 'd_inevitable' does not meet 'require'ments for user/valid-user to be allowed access 我正在尝试为所有开发用户创build一个开发服务器。 首先,我试图使用一个虚拟主机:没有成功。 没有为每个用户设置一个新的虚拟主机。 用户的虚拟主机如下所示: <VirtualHost 10.1.7.150:443> ServerAdmin d_inevitable@lan ServerName dinevitable.userspace.lan ServerAlias *.dinevitable.userspace.lan AssignUserId d_inevitable devel DocumentRoot "/home/users/d_inevitable/workspace" <Directory "/home/users/d_inevitable/workspace"> AllowOverride All Options Indexes FollowSymlinks SymLinksIfOwnerMatch Order allow,deny allow from all AuthType Kerberos AuthName "Kerberos LAN Realm […]

Redmine突然停止工作。 如何解决问题?

我是6个月的Redmine的一个快乐的用户。 我的计划是设置它,从不更新任何东西,以便不处理依赖和东西。 我正在使用Ubuntu服务器10.04(Apache / Passenger)禁用所有types的更新。 今天早上我开始在浏览器中出现内部错误。 日志文件说的是这样的: Processing WelcomeController#index (for 192.168.1.23 at 2012-03-05 10:44:12) [GET] Parameters: {"action"=>"index", "controller"=>"welcome"} NoMethodError (undefined method `[]' for nil:NilClass): /app/models/setting.rb:100:in `value=' /vendor/rails/activerecord/lib/active_record/base.rb:2589:in `send' /vendor/rails/activerecord/lib/active_record/base.rb:2589:in `attributes=' /vendor/rails/activerecord/lib/active_record/base.rb:2585:in `each' /vendor/rails/activerecord/lib/active_record/base.rb:2585:in `attributes=' /vendor/rails/activerecord/lib/active_record/base.rb:2285:in `initialize' … 我是Ruby / Rails的新手,这是我目前想了解的最后一件事情。 我怎么知道什么是错的,所以我可以尝试修复它?

Apache / PHP在重新启动后无法连接到外部数据,但在服务重新启动后工作

我正在运行CentOS 6,最近我遇到了服务器重启后无法加载外部数据的问题。 在PHPconfiguration中,我已经启用了fopen URI,并且它可以正常工作,但是一旦我重新启动机器,使用该function的页面将无法加载任何数据,这些数据在机器重新启动数天后仍然存在。 如果我发出“sudo service httpd restart”,该function再次神奇地工作, 有没有人有任何想法如何解决这个问题?

Apache一直在引用旧的index.html

我只是在Windows上安装了Apache 2.2,无法对我的更改做出反应。 它不断显示“它的作品!” 在默认的index.html文件中。 我更改了DocumentRoot,<Document,并在新的位置有一个index.html。 DocumentRoot "C:/PersonalWebsite" <Directory "C:/PersonalWebsite"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* — "Options All" # doesn't give it to you. # # The Options directive […]

如何在Apache根级别阻止一些机器人和引用页面

当我使用Lighttpd时,可以通过这样的条目轻松实现。 所以所有的网站都受到保护 Wget机器人: $HTTP["useragent"] =~ "Wget" { $HTTP["url"] =~ "^/tagi(.*)" { # $HTTP["url"] =~ "" { url.access-deny = ( "" ) } $HTTP["url"] =~ "^/tags(.*)" { url.access-deny = ( "" ) } $HTTP["url"] =~ "^/kom.php(.*)" { url.access-deny = ( "" ) } $HTTP["querystring"] =~ "^(.*)strony(.*)" { url.access-deny = ( "" ) } $HTTP["querystring"] =~ "^(.*)page(.*)" […]

这是一个正常的networking爬虫或其他东西?

我在我的大学为一个部门运行了一个小型的apache2networking服务器,我注意到访问日志中充满了如下信息: “GET / path / on / my / site / 7z | aac | arc | arj | asf | asx | avi | bin | csv | doc | exe | flv | gif | gz | gzip | hqx | jar | jpe | g | js | MP(2 | 3 | […]

Linux上的Apache有两个真正的证书(.com和.co.uk)

我只能configuration一个。 当我尝试configuration其他我得到错误的语法的httpd错误。 任何一个知道如何在Apache中configuration2个证书? 这是我有: # ssl LoadModule ssl_module modules/mod_ssl.so Listen 443 AddType application/x-x509-ca-cert .crt AddType application/x-pkcs7-crl .crl SSLPassPhraseDialog builtin SSLSessionCache shmcb:/var/cache/mod_ssl/scache(512000) SSLSessionCacheTimeout 300 SSLMutex default SSLRandomSeed startup file:/dev/urandom 256 SSLRandomSeed connect builtin SSLCryptoDevice builtin <VirtualHost *:443> ServerName company ip address ServerAlias *.company wild card certificate DocumentRoot /live/html ErrorLog logs/ssl_error_log TransferLog logs/ssl_access_log LogLevel warn RewriteEngine on […]

mod_ajp_proxyconfiguration和会话粘性

我有一个jboss和Apache设置托pipe我的.war文件。 我已经启用会话粘性转发请求从Apache到JBoss。 假设我有2个apache和2个jboss实例。 以下设置是否正确? 当前会话粘性不起作用,每次请求都附加一个新的JSESSSION ID。 <Proxy balancer://cluster> Order deny,allow Allow from all BalancerMember ajp://1.1.1.1:8010/testing keepalive=On loadfactor=1 ping=10 ttl=600 BalancerMember ajp://2.2.2.2:8010/testing keepalive=On loadfactor=1 ping=10 ttl=600 </Proxy> ProxyPass /testing balancer://cluster timeout=60 stickysession=JSESSIONID nofailover=On 我是否需要将路由variables添加到平衡器成员configuration中,并且是否需要在jboss中启用useJK标志?

如何在使用mod_vhost_alias时添加特定的虚拟主机configuration?

我使用mod_vhost_alias,因为我很容易添加新的虚拟主机(我只需要创build一个目录)。 /etc/apache2/mods-available/vhost_alias.conf UseCanonicalName Off VirtualDocumentRoot /var/www/%0/htdocs /etc/apache2/sites-available/default <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> </VirtualHost> 不过,我需要configuration一个自定义虚拟主机使用mod_proxy ,所以我创build了: /etc/apache2/sites-available/mysite <VirtualHost *> ServerName mysite.example.com ProxyPreserveHost On ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass […]

阻止非法stream量(黑客,刮板,垃圾邮件)到您的网站

根据ZDNet最近的一份报告 , 31%的stream量是非法的(黑客,刮板,垃圾邮件)。 作为一个系统pipe理员的挑战是find一种方法来阻止stream量,而不会阻止您的真实用户和search引擎。 我已经searchServerFault "block traffic" ,只发现有关具体工具(如这个和iptables 这一个)的答案,它不给你一个解决scheme的概述,在那里,何时使用它们,为什么我会喜欢发表这个问题,试图收集关于这个话题的权威答案。 我开始深入研究,大致了解如下: – 你检查的堆栈中较低的 (例如iptables ) 性能更好 (因为它不被应用程序处理),但是更可能阻止合法的通信 (例如,如果你在IP上过滤,黑客使用访问点你最终将阻止所有依赖相同的访问点的用户)。 – 你检查的栈 (如apache mod_security ) 越高, 性能越差 (因为到那时为止的每个组件都必须处理这些信息),但阻止合法stream量的可能性较小 。 由于我们使用httpd/apache + PHP运行REHL 5.6和Ubuntu 10.04 ,所以我不打算撒谎,并且承认我只对符合这些configuration的解决scheme感兴趣。 问:您能否从经验中分享您使用的工具(以及为什么)来阻止您的网站的非法stream量?