mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
Avoids serving non php files using php handler. imported from https://github.com/alpinelinux/aports/pull/206
14 lines
377 B
Plaintext
14 lines
377 B
Plaintext
LoadModule php5_module modules/libphp5.so
|
|
|
|
DirectoryIndex index.php index.html
|
|
|
|
<FilesMatch \.php$>
|
|
SetHandler application/x-httpd-php
|
|
</FilesMatch>
|
|
|
|
# Uncomment the following to allow .phps files to be handled by the php source filter,
|
|
# and displayed as syntax-highlighted source code
|
|
#<FilesMatch "\.phps$">
|
|
# SetHandler application/x-httpd-php-source
|
|
#</FilesMatch>
|