HTTP Service (iii)--apache Configure personal home page

Source: Internet
Author: User
Tags server hosting

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.