No.2: location ^~ /foldername/ { auth_basic "Given me password."; auth_basic_user_file /usr/local/nginx/conf/custom/store.htpasswd; include /usr/local/nginx/conf/php54.conf; } foldername 根據要加密的資料夾做更改 store.htpasswd 帳密檔名
WHMCompleteSolution