<IfModule mod_rewrite.c>
# That was ONLY to protect you from 500 errors
# if your server did not have mod_rewrite enabled
RewriteEngine On
# RewriteBase /
# NOT needed unless you're using mod_alias to redirect
RewriteCond %{REQUEST_URI} !/hi
RewriteRule ^(.*)$ hi/$1 [L]
# Direct all requests to /public folder
</IfModule>
Các lệnh tạo SWAPTạo file swapfile:
sudo fallocate -l 1G /swapfile
hoặc
sudo dd if=/dev/zero of=/swapfile bs=1M count=1024
Phân quyền file swapfile:
sudo chmod 600 /swapfile
Đánh dấu và kích hoạt swapfile:
sudo mkswap /swapfile
sudo swapon /swapfile
– Thiết lập swap tự động được kích hoạt mỗi khi reboot
echo /swapfile none swap defaults 0 0 >> /etc/fstab




