vim /etc/httpd/conf.d/userdir.conf
<IfModule mod_userdir.c>
#UserDir disabled
UserDir public_html
</IfModule>
#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory "/home/*/public_html">
# AllowOverride FileInfo AuthConfig Limit Indexes
# Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
# Require method GET POST OPTIONS
#</Directory>
<directory /home/wang/public_html>
AuthType Basic
AuthName "wanghome Page"
AuthUserFile "/etc/httpd/conf.d/.httpuser"
Require valid-user
</directory>
mkdir /home/wang/public_html
setfacl -m u:apache:x /home/wang
http://192.168.37.7/~wang/
实现家目录的共享
最新推荐文章于 2023-12-26 01:02:02 发布