»2. Example httpd.conf

ServerType standalone
ServerRoot "/etc/apache-perl"
PidFile /var/run/apache-perl.pid
ScoreBoardFile /var/run/apache-perl.scoreboard
Timeout 30
KeepAlive Off

MinSpareServers 5
MaxSpareServers 40
StartServers 10
MaxClients 20
MaxRequestsPerChild 500

LoadModule mime_module        /usr/lib/apache/1.3/mod_mime.so
LoadModule autoindex_module   /usr/lib/apache/1.3/mod_autoindex.so
LoadModule dir_module         /usr/lib/apache/1.3/mod_dir.so

Port 80
User lj
Group lj

SendBufferSize 131072

ServerName   www.livejournal.com
PerlSetEnv   LJHOME /home/lj
PerlRequire  /home/lj/cgi-bin/modperl.pl


This will work by itself (assuming mod_perl statically linked), or you can just tack on parts to your existing config.

/home/lj is only an example directory. You'll want to use the same directory used in Section 1: $LJHOME Environment Variable.

If you'd like, you can put those last three lines in a VirtualHost block.