TAILIEUCHUNG - Apache Server 2 Bible Hungry Minds phần 3

Run / usr / local / apache / bin / apachectl lệnh bắt đầu để bắt đầu các máy chủ Web Apache. Nếu apachectl than phiền về các lỗi cú pháp, bạn nên sửa chữa các lỗi trong file và thử lại. Ngoài ra kiểm tra các ErrorLog% tập tin đăng nhập% (có nghĩa là, / usr / local / apache / logs / error_log) thông báo lỗi (nếu có). Nếu bạn | 130 Part I Getting Started Directory Listing Modules If you have a directory within your Web document tree that does not have a directory index file set using DirectoryIndex directive then Apache will automatically generate a directory listing if you have not disabled automatic directory listing using the Options -Indexes directive. Apache allows you to customize automatically generated directory listings. The modules in this section as shown in Table 5-6 enable you to configure how directory listings are displayed. Table 5-6 Directory-Listing Modules Module Purpose mod_dir Basic directory handling mod_autoindex Automatic directory listings mod_dir The mod_dir module is compiled in Apache by default. By using this module Apache can redirect any request for a directive that does not include a trailing forward slash character. For example this module can redirect somedirectory to somedirectory . It also provides the DirectoryIndex directive to help with indexing a directory s content. The DirectoryIndex directive specifies the name s of files that Apache should look for before creating a dynamic directory index. The files can be anything from an HTML file to a CGI script. The default setting enables Apache to look for the i file for any request that ends with a directory name. Syntax DirectoryIndex local_URL local_URL . Default setting DirectoryIndex Context Server config virtual host directory per-directory access control file .htaccess Override Indexes For example some directory causes Apache to look for a file called some directory . If the file exists its content is delivered to the client. In the absence of this file Apache creates a dynamic directory listing. You can specify one or more files as the default directory index files. For example the following tells Apache to look for all the named files for each directory request DirectoryIndex .

TỪ KHÓA LIÊN QUAN
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.