Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Tham khảo tài liệu 'practical mod_perl-chapter 4:mod_perl configuration', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | ch04.21778 Page 92 Thursday November 18 2004 12 35 PM CHAPTER 4 mod_perl Configuration The next step after building and installing a mod_perl-enabled Apache server is to configure it. This is done in two distinct steps getting the server running with a standard Apache configuration and then applying mod_perl-specific configuration directives to get the full benefit out of it. For readers who haven t previously been exposed to the Apache web server our discussion begins with standard Apache directives and then continues with mod_perl-specific material. The startup.pl file can be used in many ways to improve performance. We will talk about all these issues later in the book. In this chapter we discuss the configuration possibilities that the startup.pl file gives us. Perl sections are a great time saver if you have complex configuration files. We ll talk about Perl sections in this chapter. Another important issue we ll cover in this chapter is how to validate the configuration file. This is especially important on a live production server. If we break something and don t validate it the server won t restart. This chapter discusses techniques to prevent validation problems. At the end of this chapter we discuss various tips and tricks you may find useful for server configuration talk about a few security concerns related to server configuration and finally look at a few common pitfalls people encounter when they misconfigure their servers. Apache Configuration Apache configuration can be confusing. To minimize the number of things that can go wrong it s a good idea to first configure Apache itself without mod_perl. So before we go into mod_perl configuration let s look at the basics of Apache itself. 92 ch04.21778 Page 93 Thursday November 18 2004 12 35 PM Configuration Files Prior to Version 1.3.4 the default Apache installation used three configuration files httpd.conf srm.conf and access.conf. Although there were historical reasons for having three separate files