Thứ Năm, 28 tháng 10, 2021

How to stop nginx from resolving upstream to ip?

 You should enable SNI for the backend.From nginx 1.7.0 this is possible: http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_ssl_server_na...
Read More

Thứ Hai, 25 tháng 10, 2021

Hướng dẫn backup DirectAdmin với command line

 Trường hợp 1: Backup DirectAdmin với command line cho toàn bộ userĐể backup toàn bộ user chúng ta sử dụng lệnh sau.  AZDIGI Tutorialecho "action=backup&append%5Fto%5Fpath=nothing&database%5Fdata%5Faware=yes&email%5Fdata%5Faware=yes&local%5Fpath=%2Fhome%2Fadmin%2Fadmin%5Fbackups&owner=admin&type=admin&value=multiple&when=now&where=local&who=all"...
Read More

Thứ Năm, 21 tháng 10, 2021

Install-Package : No match was found for the specified search criteria and module name

 PS C:\Users\Administrator> Install-Module -Name PSFolderSizePackageManagement\Install-Package : No match was found for the specified search criteria and module name'PSFolderSize'. Try Get-PSRepository to see all available registered module repositories.At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1772 char:21+ ...          $null = PackageManagement\Install-Package...
Read More

PowerShell Installing NuGet, says unable to access internet

 PS C:\Users\Administrator> Install-PackageProvider -Name NuGetWARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409' to ''.WARNING: Unable to download the list of available providers. Check your internet connection.Install-PackageProvider : No match was found for the specified search criteria for the provider 'NuGet'. The packageprovider requires 'PackageManagement' and...
Read More

How To Iterate The Content Of A Text File In Powershell

Use Foreach$files = Get-Content -Path D:\PS-Tutorial\file-with-numbers.txt ForEach ($file in $files) { New-Item -Name $file -Path "D:\PS-Tutorial\ForEachEx" -ItemType "directory" | Out-Null } }Use ForEach-Object$files = Get-Content -Path D:\PS-Tutorial\file-with-numbers.txt $files | ForEach-Object { New-Item -Name $_ -Path "D:\PS-Tutorial\ForEach-ObjectEx" -ItemType "directory" | Out-Null }$files = Get-Content -Path...
Read More