httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] Displaying Scripts as text?
Date Thu, 05 Sep 2002 18:05:29 GMT
David Flanigan wrote:
>   I have some home grown perl scrips that I would like to easily display as 
> text, so people can copy the contents of the scripts. Is there an easy way to 
> enable this in one directory only, and allowing normal execution in others?
>  If I disable Exec CGI for the direcotry in quetsion, rather than seeing the 
> script I get a permision denied with the following error:
> Options ExecCGI is off in this directory: /var/www/html/perl/

You'll also need to "RemoveHandler .cgi .pl":
and possibly set an apporpriate content-type "ForceType text/plain":

Also note that some nasty features of MSIE make it almost impossible to 
reliably deliver text/plain content:


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message