| सर्वर दुनिया | गोपनीयता नीति | सहायता / संपर्क करें |
2375 / 126221872
|
Apache2 : mod_ratelimit कॉन्फ़िगर करें2024/05/31 |
|
ग्राहकों के लिए बैंडविड्थ सीमित करने के लिए [mod_ratelimit] मॉड्यूल सक्षम करें। |
|
| [1] | [mod_ratelimit] apache2 पैकेज में शामिल है, इसलिए इसे जल्दी से कॉन्फ़िगर करना संभव है। |
|
root@www:~#
vi /etc/apache2/conf-available/ratelimit.conf # नया निर्माण # उदाहरण के लिए, @[/download] स्थान के अंतर्गत बैंडविड्थ को @[500 KB/sec] तक सीमित करें
<IfModule mod_ratelimit.c>
<Location /download>
SetOutputFilter RATE_LIMIT
SetEnv rate-limit 500
</Location>
</IfModule>
a2enconf ratelimit Enabling conf ratelimit. To activate the new configuration, you need to run: systemctl reload apache2root@www:~# a2enmod ratelimit Considering dependency env for ratelimit: Module env already enabled Enabling module ratelimit. To activate the new configuration, you need to run: systemctl restart apache2root@www:~# systemctl restart apache2 |
| [2] | यह सुनिश्चित करने के लिए स्थान तक पहुंचें कि सेटिंग्स प्रभावी हैं। निचला वाला सीमित स्थान से डाउनलोड हो रहा है, ऊपर वाला असीमित स्थान से डाउनलोड हो रहा है। |
|
| Sponsored Link |
|
|