Linux (21): Apache service configuration (ii)

Source: Internet
Author: User
Tags php language

1. Normal user access to home folder
?
Immediately before the progress, we think about the implementation of the blog. After each user is logged in. Are all in their own home folder. Then for our request is to set each user's default advertisement folder for their home folder.

Then we'll implement it:
?
? (1) First to restore the previous operation:
?
?
?
(2) Create the user and set the home folder and its default advertisement file:
?
?
?
? Write the default advertisement:
?
?
After these steps are set up, we open this parameter in the home folder in the configuration file:
?
?
?
? After the configuration file has been set up. We also set the SELinux boolean value:
?
?
?
? The last line of content shows that we have agreed to visit the home folder.
?
? After another launch we log in to test home folder:

?
?
? hehe, we've seen it.
?

?
?2. Support for display in other languages
?
? Sometimes we want Apache to be able to display language content other than HTML. This time we need to install the Apache Management Manual:
?
?
?
? After the installation is finished, we start the httpd service again:
?

?
? So we can access its Admin manual page:
?
?
?
? Let's start by looking at how to display the content of the CGI language:
?
? Suppose we want to set the CGI language. It is necessary to add the following content to the httpd configuration file:
?
?
?
? Here's a sample of the first CGI language we're going to write:
?
?
?
? Let's change httpd's main configuration file httpd.conf:
?
?
?
? Then jump to the/var/www/html folder:
?
?
?
? This is what is written in index.cgi:
?
?
?
? Add index.cgi permission to run:
?
?
?
? View the contents of index.cgi after you start the httpd service again:
?
?
?
? We've seen what's in index.cgi:
?
?
? Summary:
?
? Similar to the language of CGI, we are able to display the contents of the PHP language in the same way, and this will not be discussed. The next knot we will explain the situation when the encryption.


?
?
?
?
?

Linux (21): Apache service configuration (ii)

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.