虚拟目录+认证精简

2021-05-17 15:23:52 浏览数 (1)

NameVirtualHost 172.16.1.15:80

<VirtualHost 172.16.1.15:80>

ServerName www.jnds.net

DocumentRoot /var/www/html

Alias /en "/data/CN"

<Directory "data/CN">

AuthType Basic

AuthName "test"

AuthUserFile /etc/httpd/.htpasswd

require user webadmin

</Directory>

</VirtualHost>

0 人点赞