blob: b94993db899e1207bc7a6ed5899fa2b6b6d7c6cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
|