You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2004/09/06 20:39:00 UTC

DO NOT REPLY [Bug 31078] New: - doc for mod_autoindex's headername invoking cgi

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31078>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31078

doc for mod_autoindex's headername invoking cgi

           Summary: doc for mod_autoindex's headername invoking cgi
           Product: Apache httpd-2.0
           Version: 2.0.50
          Platform: Other
               URL: http://httpd.apache.org/docs-2.0/mod/mod_autoindex.html
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Documentation
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: karl@freefriends.org


The documentation for mod_autoindex has various instructions about a way to make
HeaderName invoke a cgi script.  My experience is that these instructions do not
work.  Specifically, if I set:
HeaderName /try.cgi
AddType text/html .cgi

It includes the *source* of try.cgi in the output, rather than the result of
executing it.  The cgi runs fine when invoked normally, e.g.,
http://myhost/try.cgi.

I tried other variations: using a /cgi-bin (aka ScriptAlias)
directory, IndexOptions +SuppressHTMLPreamble, mod_rewrite, etc.
None worked.

What did work was a suggestion from a helpful user on the net: use SSI.  Given
HeaderName /example.shtml
then example.shtml can say, for example,
<!--#include virtual="/try.cgi"-->
And then try.cgi gets executed and the output gets included before the directory
listing.
(Thread at google in alt.apache.configuration:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&safe=off&th=842fe78ad497a6db&rnum=1
)

Just reporting this in case you wish to change the documentation (and/or code)
accordingly.

Regards,
Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org