
httpd.conf 中解释得很详细:
#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
UserDir public_html
================
UserDir:如果收到~user请求时 附加到用户home的目录名
也就是收到 http://host/~user 请求,将转到 ~/public_html
mkdir ~/public_html
然后再 ~/public_html下建立自己的主页文件,文件名为index.html了,至于其他的就看你自己怎么去设计了。
你可以在 LINUX 系统中安装一个Apache 系统软件,然后你就可以设置一个用于存放HTTP主页内容的主目录(例如:/var/14oracle/html),以及缺省的网站首页文件名(例如:index.htm、default.htm等)。欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)