Linux (21): apache service configuration (2)

Source: Internet
Author: User
1 Ordinary users go to the home directory ?? Next to the previous progress, let's think about the implementation of the blog. every user is logged on. They are all in our home directory, so we need 1. normal users enter the home directory
?
? Next to the previous progress, let's think about the implementation of the blog. every user is logged on. They are all in their home directories, so our requirement is to set the default release directory for each user as their home directory. Then we will implement it:
?
? (1) first restore the previous operation:
?
?
?
(2) create a user and set the home directory and its default Release File:
?
?
?
? Write the default published content:
?
?
After setting these steps, open the home directory parameter in the configuration file:
?
?
?
? After setting the configuration file, we also need to set the boolean value of selinux:
?
?
?
? The contents of the last line show that we have allowed access to the home directory.
?
? After the restart, we log on to the home directory of test:

?
?
? Haha, we have seen it.
?

?
? 2. support for display in other languages
?
? Sometimes we want apache to display content in other languages than html. At this time, we need to install the apache management manual first:
?
?
?
? After the installation is complete, start the httpd service again:
?

?
? In this way, we can access its management manual page:
?
?
?
? First, let's take a look at how to display the content of CGI:
?
? To set the CGI language, add the following content to the httpd configuration file:
?
?
?
? This is the first CGI language to be written:
?
?
?
? Let's modify httpd's main configuration file httpd. conf:
?
?
?
? Then jump to the/var/www/html Directory:
?
?
?
? This is the content written in index. cgi:
?
?
?
? Add the execution permission for index. cgi:
?
?
?
? After restarting the httpd service, view the content of index. cgi:
?
?
?
? We have seen the content in index. cgi:
?
?
? Summary:
?
? Similar to CGI, we can display php content in the same way. Next, we will explain the encryption situation.
?
?
?
?
?
Related Article

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.