blob: 0d750240564b751837cfc034a0ee04296811e046 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# i don't think mod_cgi is meant for handling php, i fucking really dunno after shitload of time,
# but this was done for fun, fuck you
#
# maybe this only works for shebanged scripts e.g. pl py?
<IfModule dir_module>
<IfModule cgi_module>
# when below was on, http response header was "Content-Type: application/x-httpd-php" and prompted firefox to download the file
# AddType application/x-httpd-php .php
AddHandler cgi-script .php
DirectoryIndex index.php index.html
<FilesMatch "\.php$">
SetHandler cgi-script
</FilesMatch>
</IfModule>
</IfModule>
|