我在Tomcat下设置 Tomcat70 webapps traffic_controller adminOrder 我想通过以下规则通过Apache引导stream量 www.myip www.myip/admin应该被定向到www.myip.com/ [adminOrder是根] www.myip.com/*应该被引导到www.myip.com/traffic_controller ,在一些数据收集之后将把用户引导到www.myip.com/ where * = users, or anysuffix 试了这两个: 多个RewriteConditions:如何在一组规则之前链接它们? 如何将所有urlredirect到apache中的新域,除了一个
我有基本的HTTPvalidationconfiguration到我的Apacheconfiguration中的特定Location ,如: <Location /system> AuthType Basic AuthName "Password Required" AuthUserFile /to/passwd/file Require valid-user Order allow,deny Allow from xxx Allow from xxx Satisfy Any </Location> 与/system别名到一个path/system的文件夹。 现在我在/system/user/synchro这个/systempath中有一个URL,我需要公开给大家。 应该指出,path的目的地不是一个物理文件,而是一个重写的URL。 有没有一种方法来嵌套一个Location (或东西)能够打开这一个path,但保持其余的locking?
有没有一种方法可以在Apache中为错误指定单个脚本,以便我不必编写数十个ErrorDocument指令? 我想我的脚本来处理这些错误,并显示每个自定义文本。
我应该在一个apache2(最新的Ubuntu)上有3个网站。 每个站点在“启用站点”中都有自己的文件。 每个都有自己的IP。 Apache2似乎运行良好:/var/log/apache2/error.log只说:[Fri Nov 08 12:30:12 2013] [notice] Apache / 2.2.22(Ubuntu)PHP / 5.4.6-1ubuntu1。 4configuration – 恢复正常操作 DNS文件看起来不错。 但是,当我将浏览器指向第二和第三个站点(对于他们的域名或他们的IP地址)时,它会挂起,直到超时。 接下来我应该检查什么? ———————–答案1: ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc […]
最近我们已经开始在我们的Web服务器上看到非常慢的响应时间。 我们在外部Web服务器上使用apache,并在内部传递到我们的Web服务器上。 这里是从apache安装摘录: KeepAlive On SetEnv proxy-initial-not-pooled 1 ProxyPass /msp ourservernameurl/msp 我们最近尝试的第二个proxy-initial-not-pooled设置是由于这个板子上的一个post。 我们也试过这个post: Proxy Error 502“原因:从远程服务器读取错误”与Apache 2.2.3(Debian)mod_proxy和Jetty 6.1.18 :ProxyPass / msp ourservernameurl / msp retry = 1 acquire = 3000超时= 600 Keepalive =开 但是,这使我们的代理服务器停止响应(无响应),并可能导致必须在内部服务器上重新启动。 我们在日志中看到的是多个代理超时:[Mon Nov 18 20:35:33 2013] [错误] [客户端IP](70007)指定的超时已过期:代理:错误读取远程服务器的状态行ourservernameurl, referer: https ://ourservername.com/secure/send-e-card [Mon Nov 18 20:35:33 2013] [error] [client ip] proxy:读取从/EcardsDonate/loginVerificationAction.do返回的远程服务器时出错,引用者: https : […]
我需要从源代码编译apache,但我以前的版本是通过yum下载的。 但是我需要find之前用来编译apache的选项,所以我可以在重新编译的地方使用相同的选项。 另外我想确保我的configuration文件在我重新编译时保持不变。 注意:我尝试了下面的命令,但输出没有太多帮助, [root@test httpd-2.2.4]# yumdownloader –source httpd Loaded plugins: fastestmirror Repository c5-testing is listed more than once in the configuration Loading mirror speeds from cached hostfile * base: mirrors.coreix.net * epel: mirrors.coreix.net * extras: centos.hyve.com * fc6-base: ftp-stud.hs-esslingen.de * rpmforge: www.mirrorservice.org * updates: centos.hyve.com drivesrvr | 951 B 00:00 Enabling epel-source repository No […]
不知道我在做什么错。 我已经运行了Apache好友,它build议我在/etc/apache2/apache2.conf中降低我的MaxClients设置。 它还报告说Apache正在使用prefork模式。 所以我在这里降低apache2.conf中的MaxClients值: <IfModule mpm_prefork_module> StartServers 2 MinSpareServers 2 MaxSpareServers 5 MaxClients 12 MaxRequestsPerChild 3000 </IfModule> 我重新启动Apache,再次运行Apache Buddy,它报告值不变。 我错过了什么? 这是在Ubuntu 12.04上
我已经在我的Ubuntu系统上安装了apachelog程序。 我有几个虚拟主机指向相同的日志文件,所以当我运行以下时,我应该看到来自多个站点的所有请求: $ apachetop -T 300 -f /var/log/apache2/other_vhosts_access.log 这应该显示在接下来的5分钟内现在开始的所有请求。 所以我testing它与多个网站,实际上它报告: last hit: 20:56:14 atop runtime: 0 days, 00:02:50 20:56:24 All: 10 reqs ( 0.1/sec) 7443.0B ( 103.4B/sec) 744.3B/req 2xx: 3 (30.0%) 3xx: 7 (70.0%) 4xx: 0 ( 0.0%) 5xx: 0 ( 0.0%) R (170s): 10 reqs ( 0.1/sec) 7443.0B ( 43.8B/sec) 744.3B/req 2xx: 3 (30.0%) […]
我想要做的是将所有访问者转到example.com到www.example.com.it似乎是一个非常普遍的任务,但由于某种原因,它不适用于这个特定的网站。它总是指向默认的。 奇怪的是,如果我用另一个域名(yyyyy.com和www.yyyyy.com)replace这个域名,它可以正常工作。我检查了我的DNS,并且parsing到了正确的IP。 这里是我的虚拟主机configuration: <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/html/example.com Servername www.example.com <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /var/www/html/example.com> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> </VirtualHost > <VirtualHost *:80> ServerAdmin webmaster@localhost Servername example.com Redirect 301 / http://www.example.com </VirtualHost> 这是wget -S http://example.com的输出 HTTP request sent, awaiting response… HTTP/1.1 200 […]
我怎样才能设置Apache的mod_disk_cache在一个单独的驱动器从OS / Apache的安装位置? 我已经在我的apache2.conf上设置了这个: <IfModule mod_cache_disk.c> # cache cleaning is done by htcacheclean, which can be configured in # /etc/default/apache2 # # For further information, see the comments in that file, # /usr/share/doc/apache2/README.Debian, and the htcacheclean(8) # man page. # This path must be the same as the one in /etc/default/apache2 CacheRoot /media/cacheHD # This […]