lamp-------3 userdir发布用户站点

vi /etc/httpd/conf.d/userdir.conf

 

mkdir public_html

echo "<h1>iamaaaa</h1>" >/home/aaa/public_html/index.html

chmod o+x aaa/

systemctl restart httpd.service

访问测试

http://192.168.1.142/~aaa/

 

 

 

posted @ 2017-02-05 11:35  *奥特*  阅读(96)  评论(0)    收藏  举报