TAILIEUCHUNG - Hardening Apache by Tony Mobily phần 2

Thật khó có thể tóm tắt trong một vài điểm phải làm gì để làm cho cấu hình Apache của bạn an toàn hơn. Những lời khuyên quan trọng nhất là đọc kỹ các tài liệu có sẵn, tìm hiểu chính xác những gì chỉ mỗi không, và chỉ đơn giản là không sử dụng bất cứ điều gì trừ khi đó là cần thiết. Trong phần này, tôi sẽ làm nổi bật các tùy chọn cấu hình mà bạn cần phải biết để giữ cho bạn. | LoadModule access module modules mod You will need to repeat this process a number of times. Eventually you will probably uncomment the following lines LoadModule access module modules mod LoadModule log config module modules mod log LoadModule setenvif module modules mod LoadModule mime module modules mod LoadModule dir module modules mod LoadModule alias module modules mod Finally you should also uncomment the following line to enable mod_rewrite an important module for security LoadModule rewrite module modules mod Other Recommendations It is hard to summarize in a few points what to do to make your Apache configuration more secure. The most important advice is to carefully read the available documentation find out exactly what each directive does and simply do not use anything unless it s necessary. In this section I will highlight configuration options that you should be aware of to keep your Apache server more secure. Some of them are from the page http misc security . File Permissions Make sure that Apache s files and directories are only writable by root. These are the commands suggested by Apache s web site cd usr local apache chown 0 . bin conf logs chgrp 0 . bin conf logs chmod 755 . bin conf logs chown 0 usr local apache bin httpd chgrp 0 usr local apache bin httpd chmod 511 usr local apache bin httpd Having the wrong permissions set could allow a malicious user to replace the httpd binary and therefore execute a script as root. Understand How Options are Applied Most directives can be defined in different sections of your file 1. Directory sections 2. DirectoryMatch sections 3. Files and FilesMatch sections 4. Location and LocationMatch sections 5. VirtualHost sections 6. .htaccess if it is allowed Apache merges the directives found in these sections following this particular order. Also each section is processed in the order that

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.