Apache用户验证

    技术2022-05-18  20

     

    创建.htaccess文件:

     

    AuthUserFile /home/<your_username>/webapps/<webapp_name>/.htpasswd AuthName EnterPassword AuthType Basic require valid-user # Hide files starting with a dot (.htaccess and .htpasswd in particular) <Files .*> order allow,deny deny from all </Files> 

     

    创建密码:

    htpasswd -c .htpasswd username


    最新回复(0)