diff options
Diffstat (limited to 'tiny/etc/apache2/conf-available/php5_cgi.conf')
-rw-r--r-- | tiny/etc/apache2/conf-available/php5_cgi.conf | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tiny/etc/apache2/conf-available/php5_cgi.conf b/tiny/etc/apache2/conf-available/php5_cgi.conf new file mode 100644 index 0000000..0d75024 --- /dev/null +++ b/tiny/etc/apache2/conf-available/php5_cgi.conf @@ -0,0 +1,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> + |