If you have a mind to pay attention to some Web sites that provide server hosting, you will find that these sites offer some personal page space services. Maybe you envy them and think it's a great technology. In fact, as long as you learn, you can also complete the project.
Below, we will begin to learn how to implement this function of WWW service. Personal homepage space, in plain view is to open a hard disk space for network users, for users to upload Web pages and access to the page. For Apache, you need to turn on the parameters and associated personal directory chunks:
#UserDir public_html
Locate the line and remove the previous comment symbol "#", which opens the user directory. Of course, this is just a personal directory switch, and you need to open your personal directory. Locate the following lines and remove the previous comment symbols.
<directory /home/*/public_html> allowoverride fileinfo authconfig limit options multiviews Indexes symlinksifownermatch includesnoexec <limit get post OPTIONS> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS> Order deny,allow deny from all </ Limitexcept></directory>
[[email protected] ~]# useradd wyb[[email protected] ~]# cd/home/wyb/[[email protected] wyb]# mkdir public_html[[email PR Otected] wyb]# CD public_html/[[email protected] public_html]# echo "Test" > Index.html[[email protected] home]# chmod O+x Wyb/[[email protected] wyb]# service httpd restart[[email protected] wyb]# elinks-dump 127.0.0.1/~wyb My name is wyb! [Email protected] wyb]#
OK, the page is displayed, the test is successful!
Resources:
http://blog.csdn.net/xhh198781/article/details/6663639
HTTP Service (iii)--apache Configure personal home page