Hi - first time posting here.
I have a desktop app I am building in Objective-C. It sends HTTP Post requests to an Apache web server where a PHP file handles the POST parameters and returns an XML document. I have been using Apache 2.0 & PHP 5 on my local machine for the last year and all is well - pretty much default config/ini files for both work great.
Yesterday I uploaded the necessary MySQL DB and PHP file to my hosting company so I could see what performance is like over the internet. Everything connected fine but while the app was loading one of it's more complex data objects I started receiving errors. I tracked it down to the Apache Error Log where I found...
client denied by server configuration: /the-path/the-file.php
This object model is making 12 synchronous (this important to note - the requests are NOT asyncronous) POST requests in a row to the same URL to load its data. To debug I put a sleep(1); function in my PHP file to slow down file execution to 1 second per request... this fixed the problem - everything loads fine... it just takes 12 seconds to load the model. Obviously the app is sending the POST requests so fast one after the other that Apache is reaching some sort of limit. In the near future I'll be optimizing my apps code to roll the 12 POST requests into one, but I am still want to solve this problem.
What Apache directives put a limit on requests per IP or requests per second? I am hoping I can change them via an htaccess file. Thanks in advance.