Câu nói hay

 Sông càng sâu càng tĩnh lặng, người càng trí tuệ càng tĩnh tâm.  Cứ đi thì mới biết phía trước là điều gì.  Cuộc đời này đáng sống hay không, nó phụ thuộc vào bao nhiêu việc ta đã làm được và để lại dấu vết gì trên cuộc sống này.  Cuộc sống là một …

Câu nói hay 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  

Add SSHkey to VPS

https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys-2 Create .ssh folder in root foder mkdir -p ~/.ssh touch ~/.ssh/authorized_keys echo public_key_string >> ~/.ssh/authorized_keys Phần quyền, chỉ root account mới có thể access. chmod -R go= ~/.ssh chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys Disabling Password Authentication on your Server sudo nano /etc/ssh/sshd_config PasswordAuthentication no ChallengeResponseAuthentication no UsePAM no Ubuntu sudo systemctl restart ssh …

Add SSHkey to VPS Read More »

How To Install WordPress on Linux/CentOS 7

https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-centos-7 https://hocvps.com/cai-dat-wordpress-tren-centos-6/ https://www.digitalocean.com/community/tutorials/install-wordpress-on-ubuntu https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-22-04-with-a-lamp-stack https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-22-04 https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-22-04 https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-20-04 Step Two — Install WordPress Before we download WordPress, there is one PHP module that we need to install to ensure that it works properly. Without this module, WordPress will not be able to resize images to create thumbnails. We can get that package directly from CentOS’s default …

How To Install WordPress on Linux/CentOS 7 Read More »

Emmet hotkey sublime text 3

Go to SublimeText3 > Preference > Key binding Insert snipping code below [ { “keys”: [“ctrl+t”], “command”: “new_file” }, { “keys”: [“shift+alt+e”], “command”: “open_dir”, “args”: {“dir”: “$file_path”, “file”: “$file_name”}}, { “keys”: [“ctrl+alt+p”], “command”: “prompt_select_workspace”}, { “keys”: [“shift+alt+f”], “command”: “reindent” , “args”: { “single_line”: false }}, { “keys”: [“alt+r”], “command”: “reveal_in_side_bar”}, { “keys”: [“shift+ctrl+g”], “command”: “emmet_wrap_with_abbreviation”, …

Emmet hotkey sublime text 3 Read More »