tauno (tauno) wrote in lj_everywhere,

Apache/mod_perl LiveJournal Problem

I've been mucking around trying to get the LJ code to work on Apache 1.3.33. I've got it running nicely when I use the IP address, but it refuses to work (404 errors) with the hostname. Initially I assumed the problem was with apache, but the hostname works fine when I comment out  the "PerlRequire  /home/lj/cgi-bin/modperl.pl" line and add in a DocumentRoot of /home/lj/htdocs - the site of course doesn't work since it's not loading on the modperl.pl & modperl_subs.pl stuff.

I've tried modifying various lines in the cgi-bin/modperl*.pl files and got nothing. Apache does fail if there's a syntax error, so it's reading the file. Below is my VirtualHost section from httpd.conf

<VirtualHost xxx.xxx.xxx.xxx>
        ServerName www.domain.com
        PerlSetEnv   LJHOME /home/lj
        PerlRequire  /home/lj/cgi-bin/modperl.pl
        <Directory "/home/lj">
            Options Indexes FollowSymLinks ExecCGI
        #for speed, instead of "All"
            AllowOverride None
            Order allow,deny
            Allow from all

Like I said before, using the IP address works, as does the domain when I comment out the PerlRequire line and add a DocumentRoot line.

Any ideas? I'm still learning mod_perl/perl so perhaps I'll stumble on it soon.

  • Post a new comment


    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic

    Your IP address will be recorded