I Want to add the AddHandler
to run php code for .jpg files,
when I added this AddHandler application/x-httpd-php .jpg
in /etc/apache2/mods-available/mime.conf
it worked Fine, but when I add it to /path/.htaccess
it does not work
Can you explain where the problem is?
When you look at the online manual AddHandler
, there are two entries
Context
describes where the directive is allowed. When you see .htaccess
in the list, you may use it in .htaccess files. Override
describes the prerequisite for .htaccess
. For AddHandler
, you must have AllowOverride FileInfo
or AllowOverride All
activated.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.