当我使用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(.*)" […]
目前,我正在使用以下指令将所有http url转向httpsurl, RedirectMatch permanent ^(.*)$ https://someserver.com$1 现在我坚持一个场景,我必须redirect除了像http://someserver.com/test或http://someserver.com/test/users或基本上任何有/testing后跟任何东西它。 此外,我想redirect这些具有“/testing..”的url是一个正常的HTTP显示访问被拒绝的页面(一个HTML页面)。 为了增加复杂性,所有通过“/”的请求都通过ajp使用<Location />和ProxyPass指令路由到tomcat 我不得不在这种情况下只使用RedirectMatch,因为如果我必须使用重写,我必须改变很多其他的configuration。 我们可以有多个RedirectMatch? 如果是这样,我怎么能configuration正则expression式为上面的情况…
我正在尝试使用Apache和HOSTS文件组合在我的Windows计算机上configuration虚拟主机。 例如,我想让www.example.com从localhost服务器上提供服务。 但是,端口80被Citrix进程占用,无法更改。 所以,我的httpd运行在81.我希望能够实现以下。 我在浏览器上打了http://www.example.com 。 Apache虚拟主机configuration应该收到这个请求,尽pipe运行在81.(这是我的担心所在!) 从http:// localhost:81 / htdocs提供页面 。 这可能吗? 以下是我的httpd.conf相关部分: ServerName www.example.com:81 NameVirtualHost www.example.com:81 而我的hosts文件有下面的行: 127.0.0.1 www.example.com
这是我的整个mod_rewrite条件: <IfModule mod_rewrite.c> <Directory /var/www/> Options FollowSymLinks -Multiviews AllowOverride None Order allow,deny allow from all RewriteEngine On # force www. (also does the IP thing) RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_HOST} !^mysite\.com [NC] RewriteRule ^(.*)$ http://mysite.com/$1 [R=301,L] RewriteCond %{REQUEST_URI} ^system.* RewriteRule ^(.*)$ /index.php?/$1 [L] RewriteCond %{REQUEST_URI} ^application.* RewriteRule ^(.*)$ /index.php?/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} […]
有什么理由可以为apache的服务器状态?auto参数导致相同的输出,而不使用?auto ?
我有一个4 GB的RAM和8个核心的VPS,每天约20万次访问。 我安装了DirectAdmin,并且在DirectAdmin服务监视器中始终可以看到大量的httpd和mysqld的PID。 例如,mysqld大约有40个PID,并在一段时间内增加。 我有CSF安装和configurationhttpd.conf / my.cnf有时这个负载阻止服务器响应,它冻结。 pipe理员安装了32位Centos,并为SWAP定义了只有512 MB Swap: 524280 4 524276 任何想法来解决这个问题? 谢谢
如果我有从httpd top这个输出,我如何确定其总内存使用情况? 16924 apache 20 0 203m 7108 2852 S 0.0 0.2 0:03.48 httpd 16925 apache 20 0 204m 7128 2776 S 0.0 0.2 0:03.40 httpd 16926 apache 20 0 203m 7024 2772 S 0.0 0.2 0:03.24 httpd 16928 apache 20 0 203m 7164 2852 S 0.3 0.2 0:03.64 httpd 16929 apache 20 0 203m […]
有没有人知道(简单)的方式来使用PBKDF2或BCrypt作为Apache HTTPD中的密码散列。 一般的情况是,我有一个/ private的资源,我想限制给一个给定的用户组。 这些用户将具有存储在数据库中的密码并使用mod_auth_dbd进行validation。 我想摆脱使用SSHA。 我可以在Apache apr-util中看到有一个函数apr_password_validate (它可以处理所有现在被apr_password_validate散列types); 而在apr_crypto_openssl.c中有crypto_passphrase ,这是PBKDF2的一个实现。 有没有人焊接在一起? (或者我错过了Apache文档中显而易见的东西?)
在Apache / 2.2.15,有一个或两个“[警告] mod_fcgid:进程XXXXX优美杀死失败,每天发送SIGKILL是正常的吗? 毕竟这是一个警告,而不是一个错误。 谢谢
我在这里创build了第一个服务器,在这里设置了Apache2上的域。 当我尝试运行/etc/init.d/apache2 restart此错误: [Mon Oct 29 11:47:17 2012] [warn] NameVirtualHost *:80 has no VirtualHosts [Mon Oct 29 11:47:17 2012] [warn] NameVirtualHost *:80 has no VirtualHosts 这是我的/etc/apache2/conf.d/virtual.conf # # We're running multiple virtual hosts. # NameVirtualHost *:80 这是我的/etc/apache2/sites-available/www.x.com # # Example.com (/etc/apache2/sites-available/www.x.com) # <VirtualHost *:80> ServerAdmin [email protected] ServerName www.x.com ServerAlias x.com # Indexes + Directory Root. […]