Knowledgebase
Nginx limit_conn works but not redirecting to 503 page
Posted by chasebug, 08-02-2010, 11:08 PM | I have these in nginx.conf
If I am downloading file(1) and I try to open another connection to the same file(1), my web browser just sits there with "Connecting to..."
file(1) = http://my.domain.com/speed_test.zip
If I am downloading file(1) and I try to download file(2), I get this error in:
FireFox "Firefox can't find the file at http://my.domain.com/speed_test2.zip"
IE8: "Cannot find server"
file(1) = http://my.domain.com/speed_test.zip
file(2) = http://my.domain.com/speed_test2.zip
It seems like Nginx is blocking the request and not even sending the 503 error page.
What can I do to make it so that it will show the 503 error page?
|
Posted by chasebug, 08-02-2010, 11:24 PM | Wanted to edit to add this in but was past 15 minutes:
I tried to go to the error page and it does show up:
http://my.domain.com/50x.html
|
Posted by RJohnson23, 08-03-2010, 01:47 PM | Have you checked the nginx error log to see what is happening to the requests?
|
Posted by chasebug, 08-05-2010, 04:49 AM | I checked the error log, there is nothing there!
But if I remove the file "50x.html" it will show up in the error log saying cannot find that file when there are more than 1 concurrent connection.
|
|
Add to Favourites
Print this Article |
Also Read