Re: Getting LXR to work...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.                                         vladimir@xxxxxxx
Palo Alto, CA 94306-2447                                 +1 650 678 8014

>>>>> "gf" == Guy Fraser <guy@xxxxxxxxxxxx> 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.
    >> vladimir@xxxxxxx Palo Alto, CA 94306-2447 +1 650 678 8014
    >> 
    >> 
    >> 


    > -- Psyche-list mailing list Psyche-list@xxxxxxxxxx
    > https://www.redhat.com/mailman/listinfo/psyche-list


-- 
Psyche-list mailing list
Psyche-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux