Forum Moderators: phranque

Message Too Old, No Replies

Disabling CGI / ActionHandler with .htaccess

Apache 1.3.x

         

hakre

11:46 am on Jan 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hi folks i read alot about apache directives and realized, that when i want to add actionhandler with .htaccess, the server must be properly configured, especially allowoverride (as so often with .htaccess).

my question now is, can i disable (all) actionhandlers and force that any file requested would never be handled via cgi? is it possible to remove this via .htaccess?

if someone knows or can give me a hint which directive might match for sth. like that, would be for diggin' more in.

-hakre

jdMorgan

10:06 pm on Jan 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hakre,

Options -ExecCGI should do it - see Apache core [httpd.apache.org].

Jim

hakre

12:32 am on Jan 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



jim,

thanks for that one! additionally, i found out it did not work for php-files, but they are executed in cgi-mode (not module). i don't know why this does not work out, but a

RemoveType application/x-httpd-php .php

did the job for me.

-hakre