Php 如何配置apache以允许来自同一ip的同时请求

Php 如何配置apache以允许来自同一ip的同时请求,php,apache,zend-framework2,Php,Apache,Zend Framework2,我正在使用apache2在zendframework2中进行项目工作(develope在windows上,在linux上进行生产)。发送到服务器的所有请求都在本地和生产环境中排队(在第一次结束后进行第二次启动)。我需要配置apache以允许来自同一ip和浏览器的同时请求 我没有使用基于文件的会话,因此session\u write\u close()。这个配置有什么问题 session.save_handler = files session.save_path = "C:\xampp\tmp"

我正在使用
apache2
zendframework2
中进行项目工作(
develope
windows
上,
linux
上进行生产)。发送到服务器的所有请求都在本地和生产环境中排队(在第一次结束后进行第二次启动)。我需要配置apache以允许来自同一ip和浏览器的同时请求


我没有使用基于文件的会话,因此
session\u write\u 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>
session.save\u handler=文件
session.save_path=“C:\xampp\tmp”
session.use_cookies=1
session.cookie\u secure=1
session.use_only_cookies=1
session.name=PHPSESSID
session.auto_start=0
session.cookie_生存期=0
session.cookie\u路径=/
session.cookie\u域=
session.cookie\u httponly=1
锁定文件“logs/accept.lock”
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
StartServers 2
MaxClients 150
Minspare25
MaxSpareThreads 75
螺纹预裂25
MaxRequestsPerChild 0
开始线程10
MaxClients 50
MaxRequestsPerThread 10000
螺纹尺寸65536
StartThreads 250
Minspare25
MaxSpareThreads 250
MaxThreads 1000
MaxRequestsPerChild 0
MaxMemFree 100
StartServers 2
Minspare5
MaxSpareThreads 10
MaxRequestsPerChild 0
螺纹预裂150
MaxRequestsPerChild 0
#Win32 DisableAcceptex

未设置ServerLimit。

是来自浏览器或某个wget/fopen终端命令的请求。
如果它们来自浏览器,这不是服务器配置问题,但浏览器本身不允许对同一域进行多个请求。

ServerLimit的值是多少?
?这个问题可能更适合“我没有使用基于文件的会话,所以会话写入关闭()没有帮助”…“session.save\u handler=files”?您已经提供了一个很长的配置列表,但是您没有说您正在使用哪个MPM。您是否得到了解决方案。我也面临同样的问题,都是我的错。我使用了基于文件的会话。生成csrf令牌后,会话被锁定,直到请求结束。我不得不在代码中的某些地方手动关闭会话。