Linux System Administration http

Source: Internet
Author: User

80/tcp

Based on C/S model

Loading httpd

/var/www/html

/ETC/HTTPD/CONF/HTTPD.CONF Master configuration file

SELinux

An access model developed by the U.S. Security Service

Enable

Disabled

Enforing: Mandatory mode if our actions violate selinux, force a refusal

Permissive: If you violate SELinux, you will only be warned that you can still access

Files can be set up with permissions called DAC active access control

SELinux mac for files or directories, mandatory access control

Two important elements related to SELinux

1. Security context

2.bool value

|| -Z//View the document's content values

First way: chcon-rt default _t index.html//Modify file Bag content value

The second way

If you forget the content value of the file itself, you can refer to someone else's

Chcon--referenc=var/www/html index.html

Conclusion: The security context is the control of the security-related

Boole value

function is not turned on

o Close

1 Open

GETSEBOOL-A//View all BOOL values

getsebool-a | grep httpd//filter HTTPD related bool finger

If you want to enable the profile feature, you need to open the corresponding bool value

Setsebool-p httpd enable Homedirs on

Summary: When it comes to functionality, it is a bool value.

The security context is when the file is accessed


This article from "Big Plum" blog, declined reprint!

Linux System Administration http

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.