background preloader

Apache

Facebook Twitter

Practical mod_perl. Practical mod_perl. The full book in HTML Preface mod_perl is an Apache module that builds the power of the Perl programming language directly into the Apache web server. With mod_perl, CGI scripts run as much as 50 times faster, and you can ... Part 1: mod_perl Administration Book by Parts. Part 1: mod_perl Administration Part 2: mod_perl Performance Book by Parts. Part 3: Databases and mod_perl Book by Parts. Part 4: Debugging and Troubleshooting Book by Parts. Part 5: mod_perl 2.0 Book by Parts. Part 6: Appendixes Book by Parts. 0.1. To use this book effectively, you need to be familiar with the day-to-day details of running a web server, and you need to know the Perl programming ... 0.2.

This book is not solely about mod_perl web development. 0.3. This book has four parts: Part I: mod_perl Administration Part I of this book focuses on the administration of ... 0.4. At the end of almost every chapter in this book, we include lists of resources that give further detail on relevant topics. 0.5. 0.6. 0.7. 0.8. 0.9. Performance Tuning. Table of Contents An exhaustive list of various techniques you might want to use to get the most performance possible out of your mod_perl server: configuration, coding, memory use, and more. To make the user's Web browsing experience as painless as possible, every effort must be made to wring the last drop of performance from the server. There are many factors which affect Web site usability, but speed is one of the most important. This applies to any webserver, not just Apache, so it is very important that you understand it. How do we measure the speed of a server? The requests and replies are broken into packets.

A webserver is only one of the entities the packets see along their way. You could work hard to fine tune your webserver's performance, but a slow Network Interface Card (NIC) or a slow network connection from your server might defeat it all. Of course there is little that you can do if the user has a slow connection. But there are techniques to cope with this. ApacheBench % . . Ultimate htaccess Article. .htaccess is a very ancient configuration file that controls the Web Server running your website, and is one of the most powerful configuration files you will ever come across. Htaccess has the ability to control access of the WWW's HyperText Transfer Protocol (HTTP) using Password Protection, 301 Redirects, rewrites, and much much more. This is because this configuration file was coded in the earliest days of the web (HTTP), for one of the first Web Servers ever! Eventually these Web Servers (configured with htaccess) became known as the World Wide Web, and eventually grew into the Internet we use today.

This is not an introduction to .htaccess… This is the evolution of the best of the best. You've come to the right place if you are looking to acquire mad skills for using .htaccess files. Htaccess - Evolved ^ Htaccess file know-how will do several things for you: AskApache Htaccess Journey ^ Skip this - still under edit What Is .htaccess ^ Creating Htaccess Files ^ Htaccess Scope ^ context !) Apache Week. Publishing Pages with PUT. First published: 4th April 1997 One of the most common questions we get asked is whether Apache supports web publishing with the PUT method.

Netscape Navigator Gold, AOLPress and Amaya all support this method of publishing pages. Technically the answer is yes, Apache supports that method. However it does not come with any scripts or programs which actually implement the publishing behaviour. This article explains what the PUT method is, how it can be used in Apache, and what is required to support publishing with it. It also gives a basic script to handle publishing, and explains why this script should be used very carefully to prevent security problems.

First published in Apache Week issue 59 (4th April 1997). How Apache Supports GET, POST and PUT When a browser requests a normal page from a server, it uses the "GET" method. To perform a permanent action on the server, the "POST" method is used. There is some confusion about whether Apache supports the PUT method. Using the PUT Method. Apache module mod_rewrite. Available Languages: en | fr Summary The mod_rewrite module uses a rule-based rewriting engine, based on a PCRE regular-expression parser, to rewrite requested URLs on the fly. By default, mod_rewrite maps a URL to a filesystem path. However, it can also be used to redirect one URL to another URL, or to invoke an internal proxy fetch. mod_rewrite provides a flexible and powerful way to manipulate URLs using an unlimited number of rules.

Mod_rewrite operates on the full URL path, including the path-info section. Further details, discussion, and examples, are provided in the detailed mod_rewrite documentation. Logging mod_rewrite offers detailed logging of its actions at the trace1 to trace8 log levels. Using a high trace log level for mod_rewrite will slow down your Apache HTTP Server dramatically! Example LogLevel alert rewrite:trace3 RewriteLog Those familiar with earlier versions of mod_rewrite will no doubt be looking for the RewriteLog and RewriteLogLevel directives. Example: txt rnd dbm. .HTACCESS files useful tips and trick. Mod_perl and dbm file. Table of Contents Small databases can be implemented pretty efficiently using dbm files, but there are still some precautions that must be taken to use them properly under mod_perl. Some of the earliest databases implemented on Unix were dbm files, and many are still in use today. As of this writing the Berkeley DB is the most powerful dbm implementation ( If you need a light database, with an easy API, using simple key-value pairs to store and manipulate a relatively small number of records, this is a solution that should be amongst the first you consider.

With dbm, it is rare to read the whole database into memory. The maximum practical size of a dbm database depends on many factors--your data, your hardware and the desired response times of course included--but as a rough guide consider 5,000 to 10,000 records to be reasonable. Several different indexing algorithms (known also as access methods) can be used with dbm implementations: You use it like this: