10.4 个人用户主页功能
# vim /etc/httpd/conf.d/userdir.conf
...省略...
17 #UserDir disabled
18
19 #
20 # To enable requests to /~user/ to serve the user's public_html
21 # directory, remove the "UserDir disabled" line above, and uncomment
22 # the following line instead:
23 #
24 UserDir public_html
...省略... # su - linuxprobe
$ mkdir public_html
$ echo "This is linuxprobe website" > public_html/index.html
$ chmod -Rf 755 /home/linuxprobe/# systemctl restart httpd

最后更新于