我正在使用apache 2
在Zend Framework 2
从事项目(develop
在windows
上,production
在linux
上)。发送到服务器的所有请求都在本地和生产环境中排队(第一次结束之后的第二次启动)。我需要配置apache
以允许来自同一 ip 和浏览器的同时请求。
我没有使用基于文件的会话session_write _close()
所以这无济于事。这个配置有什么问题?
session.save_handler = files
session.save_path = "C:'xampp'tmp"
session.use_cookies = 1
session.cookie_secure = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.cookie_httponly = 1
<IfModule !mpm_winnt_module>
<IfModule !mpm_netware_module>
LockFile "logs/accept.lock"
</IfModule>
</IfModule>
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
<IfModule mpm_worker_module>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
<IfModule mpm_beos_module>
StartThreads 10
MaxClients 50
MaxRequestsPerThread 10000
</IfModule>
<IfModule mpm_netware_module>
ThreadStackSize 65536
StartThreads 250
MinSpareThreads 25
MaxSpareThreads 250
MaxThreads 1000
MaxRequestsPerChild 0
MaxMemFree 100
</IfModule>
<IfModule mpm_mpmt_os2_module>
StartServers 2
MinSpareThreads 5
MaxSpareThreads 10
MaxRequestsPerChild 0
</IfModule>
<IfModule mpm_winnt_module>
ThreadsPerChild 150
MaxRequestsPerChild 0
#Win32DisableAcceptEx
</IfModule>
未设置服务器限制。
这些请求是来自浏览器还是来自某些 wget/fopen 终端命令的请求。如果它们来自浏览器,则不是服务器配置问题,而是浏览器本身不允许向同一域发出多个请求。