summaryrefslogtreecommitdiffstats
path: root/tiny/etc/apache2/conf-available/php5_fastcgi_nonwrappercall.conf
diff options
context:
space:
mode:
Diffstat (limited to 'tiny/etc/apache2/conf-available/php5_fastcgi_nonwrappercall.conf')
-rw-r--r--tiny/etc/apache2/conf-available/php5_fastcgi_nonwrappercall.conf29
1 files changed, 29 insertions, 0 deletions
diff --git a/tiny/etc/apache2/conf-available/php5_fastcgi_nonwrappercall.conf b/tiny/etc/apache2/conf-available/php5_fastcgi_nonwrappercall.conf
new file mode 100644
index 0000000..b94993d
--- /dev/null
+++ b/tiny/etc/apache2/conf-available/php5_fastcgi_nonwrappercall.conf
@@ -0,0 +1,29 @@
+<IfModule fastcgi_module>
+ AddHandler php-fastcgi .php
+ AddType application/x-httpd-php .php
+ DirectoryIndex index.php index.html
+ Action php-fastcgi /cgi-bin/fastcgi-php-wrapper
+ <Location /cgi-bin/>
+ # below SetHandler is not needed but nice for shebanged .sh or .pl scripts
+ SetHandler cgi-script
+ Options +FollowSymLinks +ExecCGI
+ </Location>
+
+# <FilesMatch "\.php$">
+# # with this i enable php via fastcgi server wide, might want to narrow it down to specific vhosts
+# # SetHandler is am override, redundant here since AddHandler already registered .php extension
+# SetHandler php-fastcgi
+# # below probably redundant since it looks like only the wrapper needs this bit ON
+# Options +ExecCGI
+# </FilesMatch>
+
+</IfModule>
+
+
+# almost worked, blew up on:
+#
+# mod_fastcgi: error reading data from FastCGI server
+# [Sun Nov 30 01:00:59.663064 2014] [core:error] [pid 11886] [client ::1:46027] End of script output before headers: php-fastcgi-wrapper
+#
+# what a fucking joke
+