Default style (Cherry Eve). Switch styles (Capricorn). XML Feed Calendar
All | General
20040913 Monday September 13, 2004

Apache

This is the first time I build and configure apache web server from scratch. Thanks to this document, I was able to setup apache with mod_perl and mod_ssl together.

To make .pl files work as cgi scripts, I have to add the following lines into httpd.conf (not sure whether all of them are necessary).

PerlModule Apache::Registry
<Directory "/path/to/cgi-bin">
    SetHandler perl-script
    PerlHandler Apache::Registry
    PerlSendHeader On
    Options +ExecCGI
</Directory>

Authentication, Authorization, and Access Control

Here you can find a very useful document about how to setup authentication, authorization and access control stuff for apache. You can add those directives either in the <Directory> section in httpd.conf or a .htaccess file placed in the directory you want to control. But in order for Apache to pay attention to .htaccess, the directories in question need to be within the scope of a AllowOverride directive that includes the AuthConfig (for voluntary controls) or Limit (for involuntary controls) keywords. For example,

<Directory /secure/dir>
    AllowOverride AuthConfig Limit
</Directory>
September 13, 2004 04:48 AM PDT Permalink

Calendar

« September 2004 »
SunMonTueWedThuFriSat
   
2
3
4
5
6
7
10
12
15
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  
       
Today

Links


Navigation


Referers

Today's Page Hits: 32