process is written as a script, the principle is written in the comments, everyone knows. One-click operation is sudo bash xxx.sh
#!/bin/bash#cd to the temporary directory to create the configuration file cd /tmp(cat <EOF<Directory /home/hursing/mylimiteddir/> SetOutputFilter RATE_LIMIT SetEnv rate-limit 30</Directory>EOF) > ratelimit.conf# The number following SetEnv rate-limit is the speed limit, in KB. Directory indicates which directory to restrict #Create a configuration file, manually create a conf file, and write the content between the two EOFs #copy the past. The mods-available directory places all available modules sudo cp ratelimit.conf /etc/apache2/mods-available/#mods-enabled directory to place all enabled modules, all soft links, can be seen with ls -l cd /etc /apache2/mods-enabled#ratelimit is the speed limit module, the load suffix file stores the path of the so library, and the conf suffix file is for the module configuration sudo ln -s ../mods-available/ratelimit.load .sudo ln -s . ./mods-available/ratelimit.conf .# Restart the service to take effect sudo service apache2 restartSome additions: The Directory tag can be replaced with something else, such as Location indicating a specific url. Unlabeling is a global setting. There can be multiple tags to set up different directories. The speed value cannot be a decimal.
ratelimit was added in version 2.4. See http://httpd.apache.org/docs/2.4/mod/mod_ratelimit.html
One User Profile 1 User Information File /etc/passwd Lets open this file to see There
Yesterday I received the zabbix alarm email, the usage rate of a servers /home directory re
This article will guide you to install Debian 7 Wheezy network directly by using DNSMASQ as a PXE se
What should I do if the Ubuntu system Grub fails? Many computer users think of reloading: Grub, howe
Linux partial command explanation (what means the command abbreviation means)
Linux kernel boot to retain large memory method summary
Linux server monitoring commands
Log Management in Linux System
Linux shared wifi to Android phone
Create a user with a password under Linux
Linux ulimit command usage parsing
The TIME/TIME+ value of the linux top command is
The use of the Linux primary command useradd and detailed
Linux firewall iptables utility settings
Win10 Build 9901 Leaks Improved Detail Gallery
How to restore the input method float of Windows XP system
The release of Windows 8 RP has millions of user download experiences
Creating a desktop shortcut under Win7 One-click safe way to exit a USB device
WP-T-WAP does not have permission to add logs in UCWEB. Solution
How Windows 8 System Manages Automatically Logged Credentials
Easy to create a xp hidden account
How to set win8 fast key shutdown
Win8 system skills: Win32 operating system hidden in the 4 gadgets
Will the Win10 system also fulfill the "Windows generation update spell"?