Kiến thức

IIS Web Server

Tất cả các hướng dẫn có liên quan đến IIS Web Server từ Nhân Hoà IIS là viết tắt của từ (Internet Information Services ), được tích hợp sẵn với các phiên bản của Windows Server. Internet Information Services (IIS) bao gồm dịch vụ dành cho máy chủ chạy trên nền hệ điều hành Window nhằm…

Chuyển hướng site từ HTTP sang HTTPs

I. Cho webserver là Apache Sử dụng file .htaccess Mở file .htaccess, chèn đoạn mã sau vào đầu file RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]        2. Hướng dẫn thêm với site WordPress 1.1 Vẫn chèn đoạn mã chuyển hướng trên vào đầu file .htaccess RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]…

Hướng dẫn enable PHP-SOAP, PHP-INTL and PHP-XMLRPC trên directadmin

Bài viết hướng dẫn các bạn enable PHP cài đặt PHP-SOAP, PHP-INTL and PHP-XMLRPC trên DirectAdmin thông qua folder custombuild cd /usr/local/directadmin/custombuild/ vi ap2/configure.php5 Thêm –enable-intl \ vào phía dưới –enable-mbstring \ –enable-mbstring \ –enable-soap \ –enable-intl \ –with-xmlrpc \ Sau đó build lại php với lệnh ./build php n Trên đây là hướng dẫn enable PHP. Chúc…

Sử dụng Request Filter để chặn URL

1. Remote vào vps/server 2. Mở IIS Manager, trong bảng Connections > chọn tên vps/server > chọn Request Filter: 3. Chọn tab URL > chọn Deny Sequence > nhập ký tự trong URL cần chặn > OK Ví dụ: chặn các url có chuối “DialogHandler.aspx” như sau: Kết quả: Bây giờ tất cả các request…

Hướng dẫn khắc phục lỗi CredSSP Encryption Oracle Remediation khi Remote Desktop

Lỗi “CredSSP Encryption Oracle Remediation Error” trong giao thức bảo mật CredSSP ( Credential Security Support Provider Protocol ) là một lỗi thường gặp trong kết nối Remote Desktop Protocol (RDP) giữa Window Client ( máy tính cá nhân ) và Window Server (máy chủ). Đây là tính năng bảo mật từ Microsoft, tuy nhiên lỗi này xảy…

Tạo batch upload file ftp trên windows

Hướng dẫn tạo batch script upload file qua ftp trên windows Ở đây mình tạo file trong folder D:\Script 1, Tạo 1 file ftp.txt open <IP> 21 user password prompt binary mput “*.*” quit 2, Tạo file batch với nội dung sau ftp -s:D:\Script\ftp.txt Trên đây là hướng dẫn tạo batch upload file ftp trên…

Tạo file batch nén file hoặc folder trên windows

Đây là lệnh nén folder “C:\Program Files\WinRAR\rar.exe” a -ep1 -r “Name of ZIP file with path” “C:\Users\%username%\desktop\someFolder\” Đây là lệnh nén các file “C:\Program Files\WinRAR\rar.exe” a -ep1  “Name of ZIP file with path” “C:\Users\%username%\desktop\someFolder\*.*” Các bạn có thể sửa “Name of ZIP file with path” thành “C:\Backup.rar” tùy vào mục đích mình muốn lưu vào…

Rewrite file tĩnh image to cdn asp.net

Hướng dẫn rewrite file tĩnh image sang domain cdn trên asp.net <outboundRules rewriteBeforeCache=”true”>                 <!– outbound rules –>                 <rule name=”CDN-01-jpg” preCondition=”CheckHTML” stopProcessing=”true”>                   <match                     filterByTags=”Img”                     pattern=”(^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/).*\.(jpg|jpeg|png).*)” />                   <action type=”Rewrite” value=”https://cdn.domain.com{R:1}” />                 </rule>  …

Redirect http to https trên web.config

Thông thường, rule redirect được khai báo trong file web.config nằm trong thư mục gốc website của. Nếu redirect không hoạt động, hay kiểm tra web.config có tồn tại không và rule redirect có đúng quy tắc không? Bài viết sau Nhân Hòa sẽ hướng dẫn Redirect http to https Dưới đây là rule redirect…

Hướng dẫn nâng max_connections MySQL trên windows

Nếu truy cập website hay phần mềm xuất hiện lỗi MySQL connection is blocked of many connection errors. Các bạn có thể xử lý như sau Edit file my.ini C:\ProgramData\MySQL\MySQL Server 5.7\my.ini Tìm đến dòng max_connections và sửa lại thông số phù hợp Ví dụ: max_connections=1000 Sau đó restart lại service mysql Chúc các bạn…