Writing Apache Modules with Perl and C
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Home > Computing and Information Technology > Computer programming / software engineering > Programming and scripting languages: general > Writing Apache Modules with Perl and C
Writing Apache Modules with Perl and C

Writing Apache Modules with Perl and C


     0     
5
4
3
2
1



International Edition


X
About the Book

Apache is the most popular web server on the Internet because it is free, reliable, and extensible. The availability of the source code and the modular design of Apache makes it possible to extend web server functionality through the Apache API. For the most part, however, the Apache API has only been available to C programmers, and requires rebuilding the Apache server from source. mod_perl, the popular Apache module used primarily for enhanced CGI performance, changed all that by making the Apache API available to Perl programmers. With mod_perl, it becomes simple to develop Apache modules with Perl and install them without having to rebuild the web server. Writing Apache Modules with Perl and C shows how to extend web server capabilities regardless of whether the programming language is Perl or C. The book explains the design of Apache, mod_perl, and the Apache API. It then demonstrates how to use them to perform for tasks like the following: Rewriting CGI scripts as Apache modules to vastly improve performance Server-side filtering of HTML documents, to embed special markup or code (much like SSI) Enhancing server log functionality Converting file formats on the fly Implementing dynamic navigation bars Incorporating database access into CGI scripts Customizing access control and authorization to block robots or to use an external database for passwords The authors are Lincoln Stein and Doug MacEachern. Lincoln is the successful author of How to Set Up and Maintain a World Wide web Site and the developer of the widely used Perl CGI.pm module. Doug is a consultant and the creator of the innovative mod_perl Apache module.

Table of Contents:
Preface 1. Server-Side Programming with Apache Web Programming Then and Now The Apache Project The Apache C and Perl APIs Ideas and Success Stories 2. A First Module Preliminaries Directory Layout Structure Installing mod_perl "Hello World" with the Perl API "Hello World" with the C API Instant Modules with Apache::Registry Troubleshooting Modules 3. The Apache Module Architecture and API How Apache Works The Apache Life Cycle The Handler API Perl API Classes and Data Structures 4. Content Handlers Content Handlers as File Processors Virtual Documents Redirection Processing Input Apache::Registry Handling Errors Chaining Content Handlers Method Handlers 5. Maintaining State Choosing the Right Technique Maintaining State in Hidden Fields Maintaining State with Cookies Protecting Client-Side Information Storing State at the Server Side Storing State Information in SQL Databases Other Server-Side Techniques 6. Authentication and Authorization Access Control, Authentication, and Authorization Access Control with mod_perl Authentication Handlers Authorization Handlers Cookie-Based Access Control Authentication with the Secure Sockets Layer 7. Other Request Phases The Child Initialization and Exit Phases The Post Read Request Phase The URI Translation Phase The Header Parser Phase Customizing the Type Checking Phase Customizing the Fixup Phase The Logging Phase Registered Cleanups Handling Proxy Requests Perl Server-Side Includes Subclassing the Apache Class 8. Customizing the Apache Configuration Process Simple Configuration with the PerlSetVar Directive The Apache Configuration Directive API Configuring Apache with Perl Documenting Configuration Files 9. Perl API Reference Guide The Apache Request Object Other Core Perl API Classes Configuration Classes The Apache::File Class Special Global Variables, Subroutines, and Literals 10. C API Reference Guide, Part I Which Header Files to Use? Major Data Structures Memory Management and Resource Pools The Array API The Table API Processing Requests Server Core Routines 11. C API Reference Guide, Part II Implementing Configuration Directives in C Customizing the Configuration Process String and URI Manipulation File and Directory Management Time and Date Functions Message Digest Algorithm Functions User and Group ID Information Routines Data Mutex Locking Launching Subprocesses A. Standard Noncore Modules B. Building and Installing mod_perl C. Building Multifile C API Modules D. Apache:: Modules Available on CPAN E. Third-Party C Modules F. HTML::Embperl-Embedding Perl Code in HTML

About the Author :
Lincoln Stein is an assistant investigator at Cold Spring Harbor Laboratory, where he develops databases and user interfaces for the Human Genome Project using the Apache server and its module API. He is the author of several books about programming for the web, including The Official Guide to CGI.pm, How to Set Up and Maintain a Web Site, and Web Security: A Step-by-Step Reference Guide. Doug MacEachern has been addicted to Perl and web servers since early 1994 when he was introduced to Plexus as a student employee at the University of Arizona. Soon after returning to his home town of Boston, Massachusetts, and entering the "real world," he discovered the Apache web server, and since early 1996, he has been gluing Perl into all its nooks and crannies. His day job has consisted of integrating various other technologies with the web, including DCE, Kerberos, and GSSAPI, but Perl has been the only one he cannot let go of. Doug has continued as a developer disguised as a consultant since the start of 1998, spending most of his time between Auckland, New Zealand, and San Francisco, California, with time at home in Boston during the warmer months. Doug likes to spend his time away from software-far, far away, sailing on the ocean, diving below it, or simply looking at it from a warm, sandy beach where technology doesn't go much beyond thatched huts and blenders.


Best Sellers


Product Details
  • ISBN-13: 9781565925670
  • Publisher: O'Reilly Media
  • Publisher Imprint: O'Reilly Media
  • Language: English
  • Returnable: Y
  • Returnable: Y
  • ISBN-10: 156592567X
  • Publisher Date: 11 May 1999
  • Binding: Book
  • No of Pages: 746
  • Returnable: Y


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Writing Apache Modules with Perl and C
O'Reilly Media -
Writing Apache Modules with Perl and C
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Writing Apache Modules with Perl and C

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    Fresh on the Shelf


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!