Re: Getting LXR to work...

"Vladimir G. Ivanovic" <[email protected]>
Newsgroups gmane.linux.redhat.release.psyche
Message-ID <[email protected]>
Thanks for the offer, but I think I've solved the problem, or at least
developed a workaround.

Apache uses a file's extension to determine that file's MIME type. But
the LXR files (source, find, search, etc.) have no extension, so Apache
just treats them as text/plain, and my browser renders them as such.

The fix/workaround is to add "ForceType text/html" in the .htaccess file
for those files in the LXR directory:

   <Files ~ (find|search|source|ident|diff|cgi-bin)$>
   SetHandler perl-script
   PerlHandler ModPerl::Registry
   PerlSetEnv PERL5LIB /usr/local/lxr/lib
   PerlSetEnv LXRPATH /usrlocal/lxr
   PerlOptions +ParseHeaders
   Options -Indexes ExecCGI
   ForceType text/html
   </Files>

I also commented out the call to printhttp in Common.pm because all it
does is add a line of plain text at the top of each rendered page. That
line contains "HTTP/1.0 200 OK Last-Modified ..." stuff (that I though
would have been consumed by my browser).

BTW, I am using version 0.9.2 of LXR.

--- Vladimir

------------------------------------------------------------------------
Vladimir G. Ivanovic                        http://leonora.org/~vladimir
2770 Cowper St.                                         [email protected]
Palo Alto, CA 94306-2447                                 +1 650 678 8014

>>>>> "gf" == Guy Fraser <[email protected]> writes:

    > LXR seems like an neet tool.

    > Which version are you trying to build?

    > I have written many cgi programs and am willing to help, but need
    > to know what source needs to be fixed.

    > Guy

    > Vladimir G. Ivanovic wrote:

    >> After much work, I have gotten to the point where LXR (the Linux
    >> CrossReferencer: http://lxr.linux.no) is almost working. Instead
    >> of seen rendered HTML, I'm seening raw HTTP/HTML, like:
    >> 
    >> HTTP/1.0 200 OK Last-Modified: Fri, 7 Aug 2003 19:34:38 GMT
    >> Content-Type: text/html; charset=iso-8859-1
    >> 
    >> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    >> <html> <head> <title>Linux 2.4.18 identfier search</title> <base
    >> href="http://localhost/lxr/";> <link
    >> href="/usr/local/lxr/lxr.css" rel="STYLESHEET" type="text/css">
    >> </head> ...
    >> 
    >> It's got to be something simple! Any help would be appreciated.
    >> What do I have to change to get LXR to work?
    >> 
    >> Thanks!!!!
    >> 
    >> --- Vladimir
    >> 
    >> ------------------------------------------------------------------------
    >> Vladimir G. Ivanovic http://leonora.org/~vladimir 2770 Cowper St.
    >> [email protected] Palo Alto, CA 94306-2447 +1 650 678 8014
    >> 
    >> 
    >> 


    > -- Psyche-list mailing list [email protected]
    > https://www.redhat.com/mailman/listinfo/psyche-list


-- 
Psyche-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/psyche-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.