Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/262.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php VirtualHost会在一段时间后降低服务器速度_Php_Node.js_Apache_Proxy_Virtualhost - Fatal编程技术网

Php VirtualHost会在一段时间后降低服务器速度

Php VirtualHost会在一段时间后降低服务器速度,php,node.js,apache,proxy,virtualhost,Php,Node.js,Apache,Proxy,Virtualhost,我使用的是Node.js聊天系统(Ajaxim.com),所以基本上我为它设置了一个独特的Node.js服务器。然后我在PHP服务器中使用VirtualHost访问它,如下所示: <IfModule mod_proxy.c> ProxyRequests On Timeout 3600 ProxyTimeout 3600 <Proxy *> Order deny,allow Allow from .nodeserver.com </Proxy>

我使用的是Node.js聊天系统(Ajaxim.com),所以基本上我为它设置了一个独特的Node.js服务器。然后我在PHP服务器中使用VirtualHost访问它,如下所示:

<IfModule mod_proxy.c>
ProxyRequests On

Timeout 3600
ProxyTimeout 3600

<Proxy *>
    Order deny,allow
    Allow from .nodeserver.com
</Proxy>

ProxyVia Off

NameVirtualHost *:443

<VirtualHost *:443>
    DocumentRoot /var/www/html/qanda
    SSLEngine on
    SSLCertificateChainFile /home/ec2-user/verisign/bundle.crt
    SSLCertificateFile /home/ec2-user/verisign/www.phpserver.com.crt
    SSLCertificateKeyFile /home/ec2-user/verisign/www.phpserver.com.key
    ServerName www.phpserver.com

SSLProxyEngine On
ProxyPass /chat https://phpserver.com:8000
ProxyTimeout 3600
Timeout 3600

   # ErrorLog logs/phpserver.com-error_log
   # CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javas$

代理请求
超时3600
代理超时3600
命令拒绝,允许
允许从.nodeserver.com
ProxyVia关闭
名称虚拟主机*:443
DocumentRoot/var/www/html/qanda
斯伦金安
SSLCertificateChainFile/home/ec2 user/verisign/bundle.crt
SSLCertificateFile/home/ec2 user/verisign/www.phpserver.com.crt
SSLCertificateKeyFile/home/ec2 user/verisign/www.phpserver.com.key
服务器名www.phpserver.com
SSLProxyEngine打开
代理通行证/聊天https://phpserver.com:8000
代理超时3600
超时3600
#错误日志/phpserver.com-error\u日志
#CustomLog日志/dummy-host.example.com-access\u日志公用
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javas$

我刚开始的时候还不错,但3-4个小时后,速度变得难以置信的慢。比如我甚至不能再打开我的网站(php端),或者加载一个页面需要2分钟。我该怎么办

有什么想法吗。。。?谢谢各位。如果这与Apache或VirtualHost有某种关联,我会感到惊讶。你试过不使用Apache作为前端吗?@nitzanshake没有,但当我禁用这些代理虚拟主机时,它工作正常。我担心这和SSL有关?五年后…你解决了吗?