[Lxr-dev] [ lxr-Bugs-1217451 ] lxr.css and CGI script handling mode
Brought to you by:
ajlittoz
From: SourceForge.net <no...@so...> - 2005-06-17 22:46:29
|
Bugs item #1217451, was opened at 2005-06-09 08:19 Message generated for change (Comment added) made by abarbieri You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=1217451&group_id=27350 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Browsing Group: current cvs Status: Open Resolution: None Priority: 5 Submitted By: Andrea Barbieri (abarbieri) Assigned to: Nobody/Anonymous (nobody) Summary: lxr.css and CGI script handling mode Initial Comment: Hello, in LXR v0.9.4 whenswitching .htaccess to be the CGI mode one, the lxr.css file generates the following apache (v1.3.x and v2.0.x) server error: file permissions deny server execution: /var/lxr/lxr.css there is no valid file permissions to resolve the error. the root of the problem is in the <Files> section of the .htaccess (cgi style): <Files ~ (find|search|source|ident|diff|cgi-bin)$> SetHandler cgi-script ForceType text/html </Files> the use of the SetHandler directive forces *all* files to be treated as cgi scripts, even the stylesheet file. a better approach would be to suffix the scripts with .pl and use the AddHandler directive. this way the stylesheet will be treated normally. many thanks andrea ---------------------------------------------------------------------- >Comment By: Andrea Barbieri (abarbieri) Date: 2005-06-17 22:46 Message: Logged In: YES user_id=65472 According to the INSTALL text file it is possible to use Apache without the mod_perl (running scrpts as CGI)... This is why in this configuration ScriptAlias must be used in httpd.conf and the .htaccess_cgi renamed to .htaccess. Only with this setup the problem mention in this thread is experienced. ---------------------------------------------------------------------- Comment By: Ben Gamari (bgamari) Date: 2005-06-17 13:23 Message: Logged In: YES user_id=97638 I am running apache-2.0.52 and changing the ScriptAlias to a normal Alias directive has somehow fixed the problem given that the CGI .htaccess is used. ---------------------------------------------------------------------- Comment By: Ben Gamari (bgamari) Date: 2005-06-17 13:22 Message: Logged In: YES user_id=97638 I am running apache-2.0.52 and changing the ScriptAlias to a normal Alias directive has somehow fixed the problem given that the CGI .htaccess is used. ---------------------------------------------------------------------- Comment By: Andrea Barbieri (abarbieri) Date: 2005-06-10 15:37 Message: Logged In: YES user_id=65472 Hello, the reason for the posting is actually to get the maintainers of the code to properly resolve the issue... this actually requires a more thoughtful approach ... and probably changing the involved filenames in all the occurrences, deep down in all .pm files will be required ... not just at the top level (and in the .htaccess) files bests andrea ---------------------------------------------------------------------- Comment By: gd-smith (gd-smith) Date: 2005-06-10 03:10 Message: Logged In: YES user_id=1293603 Can I assume this is why I don't see the style sheet effects, e.g., green bar across top, better file display, etc.? If so, what files do I need to change to <name>.pl? The ones listed in the <Files ~(find|...)$> including source? Do I need to run genxref again? Also, how come this seemed to work ok with 0.9.3? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=1217451&group_id=27350 |