我在安装OpenSuse上的Apache的proxy_html问题。 它看起来像模块安装: a2enmod proxy_html "proxy_html" already present 并在/ etc / sysconfig / apache2我有行: APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile authz_default authz_user autoindex cgi dir env expires include log_config mime negotiation setenvif ssl userdir php5 jk proxy proxy_html rewrite" 但是Apache看不到这个模块: /etc/init.d/apache2 configtest Module "proxy_html" is not installed, ignoring. Check the APACHE_MODULES setting in /etc/sysconfig/apache2. Syntax OK […]
我正在尝试为javascript设置mod_mime。 我的networking服务器返回这个js文件的内容types: Content-Type:application/x-javascript; charset=utf-8 这个指令很明显 ExpiresByType application/x-javascript "access plus 1 year" 在.htaccess中指定不起作用。 那么,任何想法如何在这种情况下指定MIMEtypes? PS:相同(添加; charset=utf-8 )也发生.css ,但所有的二进制types(图像)工作正常。
我试图保持我的Apache安装尽可能精简,但我有时需要使用mod_proxy。 有谁知道编译mod_proxy到Apache是否有很多开销,而不是在需要时使用共享模块?
我知道Apache作为服务运行时必须使用UNCpath作为networking资源,但我有一个本地驱动器I: 这不是虚拟驱动器,也不是映射驱动器,它是一个单一的物理磁盘。 我不断收到我的日志中的这个错误 Syntax error on line X of C:/Program Files/Apache Software Foundation/Apache2.2/conf/extra/httpd-vhosts.conf: <Directory "I:/path/to/web/root"> path is invalid. 然而,这条道路绝对存在。 我可以通过一个不同的UNC共享访问它,但是不会每个文件访问都通过SMB吗? 这不会杀死性能?
我configuration我的DNS(bind9)接受每个子域,使用通配“A”logging: *.mydomain.tld. IN A xx.xx.xx.xx 我将Apacheconfiguration为使用虚拟主机提供一些特定的子域名: <VirtualHost *:80> ServerName sub1.mydomain.tld ServerAlias sub1.mydomain.tld JkMount / sub1JK JkMount /* sub1JK </VirtualHost> 当我从一个远程计算机在apacheconfiguration的子域ping我得到一个响应。 当我在一个未configuration在apache的子域上ping时,找不到主机。 我不明白为什么Apacheconfiguration会影响这样的DNSparsing? 我将不胜感激任何有助于我理解这一点的信息。 非常感谢。
我有一个服务器(Apache2 + nginx作为反向代理,memcachedcaching和eaccelerator)。 该应用程序是Magento – 这是非常沉重的,由于高模块化和大量的PHP文件(5000-10000 +)。 软件版本: 服务器版本:Apache / 2.2.16(Debian) 服务器内置:Sep 25 2011 22:18:56 PHP 5.3.3-7 + squeeze3与Suhosin-Patch(cli) memcached STAT版本1.4.5(不是PHP模块) eaccelerator php模块0.9.6.1 中央处理器: root @ grandpa:〜#cat / proc / cpuinfo 处理器:0 vendor_id:GenuineIntel CPU系列:15 型号:2 型号名称:Intel(R)Pentium(R)4 CPU 2.40GHz 步骤:7 CPU MHz:2399.701 caching大小:512 KB fdiv_bug:不 hlt_bug:不 f00f_bug:不 coma_bug:不 fpu:是的 fpu_exception:是的 cpuid等级:2 wp:是的 flags:fpu vme de pse […]
有没有人注意到Internet Explorer的useragents更改他们的访问日志? – – 12.345.6.789 – – [24/Feb/2012:15:59:59 -0800] "GET HTTP/1.1" 200 4759 "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.2; AskTbMP3R7/5.14.1.20007)" – – 12.345.6.789 – – [24/Feb/2012:16:00:01 -0800] "GET HTTP/1.1" 200 4040 "Mozilla/5.0 (compatible; MSIE 9.0; Windows […]
我刚刚得到了一个中间人DV服务器。 这里是基本的设置: CentOS 5.5 x86_64(64位) Apache 2.2.3 MySQL 5.1.54 PHP 5.3.5 Perl 5.8.8 Ruby 1.8.5 Plesk Panel 10.4 YUM包pipe理 我已经添加了mod_pagespeed和suPHP,但就是这样。 在这个问题上。 两个testing网站之一只加载铬(和默认的Android浏览器),虽然不是在IE或FF(内部服务器错误)。 其他加载罚款在我testing的所有浏览器。 两者都在通过保护的目录。 访问在所有浏览器导致密码对话,但一旦input信息,一个给IE和FF内部服务器错误。 这里是我在httpd错误日志中看到的:(每当我重新启动httpd通过SSH时,相同的打印) [Fri Feb 24 19:40:51 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Fri Feb 24 19:40:52 2012] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!? […]
我已经定义了下面的configuration来代理Apachestream量到Mongrel来运行Redmine。 在这一点上,所有的PHP脚本现在都被浏览器下载,而不是被parsing。 一旦我删除这个configuration,每一件事情都会恢复正常。 有什么我可能会丢失或有一个错过configuration? 不幸的是,在apache error_log和php_error.log都没有错误。 #define mongrel cluster <proxy balancer://mongrelcluster> BalancerMember http://127.0.0.1:81 </proxy> #forward requests to mongrel cluster <virtualhost *:80> ServerName domain.com ServerAlias host.domain.com ServerAlias <server ip> ProxyPreserveHost on ProxyPass / balancer://mongrelcluster/ ProxyPassReverse / balancer://mongrelcluster/ </virtualhost>
我有我的VPS服务器安装apache2。 10,000个人连接到这个站点,现在速度很慢,而我的CPU是1.25%,I / O是20B /秒。 我有644 MB的可用内存和使用只有347。 我的apache2.conf现在是: StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 20 MaxRequestsPerChild 0 KeepAliveclosures。 我找不到为什么这么慢。 你怎么看? 谢谢。