Hướng dẫn cài SSL miễn phí trên Hosting và VPS

adminTháng 7 31, 2022
378 lượt xem
<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 SWAP

Tạ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

Các kênh thông tin của chúng tôi

Disclaimer: Thông tin trong bài viết không phải là lời khuyên đầu tư từ Coin98 Insights. Hoạt động đầu tư tiền mã hóa chưa được pháp luật một số nước công nhận và bảo vệ. Các loại tiền số luôn tiềm ẩn nhiều rủi ro tài chính.

Để lại một bình luận

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *