PDA

View Full Version : prevent php engine in .htaccess


kakao
1-16-05, 10:02 AM
I'm setting a mediawiki site up.
I enabled the upload of images and it works Ok.
Now I want to follow the security advice from http://meta.wikimedia.org/wiki/Documentation:Security#Securing_the_upload_directo ry
I did place this in an .htacces file in the images directory:

php_admin_flag engine off
AddType text/plain .html .htm .shtml .php

It gives an internal server error. I suppose it is because Powweb runs the cgi php instead of the module.

Any advices?

kakao
1-17-05, 10:24 AM
Could a moderator please move this thread to the .htaccess forum?