Server

How To Install the Apache Web Server on Ubuntu 20.04

https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-20-04 https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-18-04 https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-20-04

Command line in Linux

Hướng dẫn phân quyền Tập tin và Thư mục trên Linux dễ hiểu nhất (chmod, chown) https://www.bkns.vn/huong-dan-tao-them-user-truy-cap-ssh-va-disable-user-root.html Phân quyền trong Linux: Bài 1- Quản lý User, group và phân quyền trên linux Check OS cat /etc/*-release Xem bạn là user nào trong linux whoami Xem group bạn đang thuộc về groups <username> Liệt kê User trên …

Command line in Linux Read More »

Redirect link

Single Hop http to https for non-www or www Domain with .htaccess If you are behind a reverse proxy like Cloudflare or nginx this condition can help make sure the redirect is triggered RewriteCond %{HTTP:X-Forwarded-Proto} !https Final destination: https://www.example.com #BEGIN force https from https://guides.wp-bullet.com <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteCond %{HTTP_HOST} ^(www\.)?hammerpedia\.com [NC] RewriteRule ^(.*)$ https://www.example.com/$1 …

Redirect link Read More »

LetsEnscrypt SSL

Cài đặt chứng chỉ Let’s Encrypt SSL trên server HocVPS Script https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-centos-7 https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-centos-7 # Stop Nginx service nginx stop # Issue SSL Let’s Encrypt /opt/letsencrypt/certbot-auto certonly –standalone #Check nginx syntax nginx -t #Restar Nginx service nginx restart