Apache2: 429, Too Many Requests response

我与影子孤独终老i 提交于 2019-12-23 18:14:53

问题


My Apache returns a 429 error code when I start using my API intensively. De API calls are generated by SAP BusinessObject and send to my 'Reverse Proxy' to convert HTTP to HTTPS. The Reverse Proxy forwards the HTTP request to the webserver over HTTPS.

After 15 requests, the Reverse Proxey returns a 429 error in the Apaches error.log. These 15 requests are made within 9 minutes.

How can I configure Apache so it will handle this kind of load/traffic? Becase I've another 300 requests after the first 15...

Reverse Proxy config:

NameVirtualHost *:80
ProxyRequests Off

<VirtualHost *:80>
        ServerName domain.com
        ServerAlias domain.com

        SSLProxyEngine On
        SSLProxyVerify none
        SSLProxyProtocol SSLv3
        ProxyPass / https://domain.com/
        ProxyPassReverse / https://domain.com/

        <Directory proxy:*>
                Order Deny,Allow
                Allow from all
        </Directory>
</VirtualHost>

回答1:


An update in de webservers webserver was the problem. The vendor replaced their webserer and put a limit of 5 requests per minute in the software...

This was not mentioned in the release not.

Thank you for he time and sorry to bother you.




回答2:


I am no Apache expert. But, I'd give the following a try (in the apache config):

# wait up to 300 seconds for slow clients
TimeOut 300
# allow connections to be reused between requests
KeepAlive On
# allow a maximum of 100 requests per connection
MaxKeepAliveRequests 100
# wait up to 15 seconds for the next
# request on an open connection 
KeepAliveTimeout 15


来源:https://stackoverflow.com/questions/15632645/apache2-429-too-many-requests-response

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!