blob: 1be8706b2c4fa1f0ca6c3fce911ff490d68aea0c (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Please note that using -DSUPHP in conjunction with -DPHP4 will currently
# not work. Whilst it is possible to run both using combinations of
# 'php_admin_flag engine off' and 'suPHP_Engine on', which can be configured
# per-vhost, this is not a supported configuration.
# Use suphp for every CGI script (not only for *.cgi and *.pl):
# 1) you can disable mod_cgi and mod_cgid if you run all your cgi scripts
# with mod_suphp!
# 2) Replace ScriptAlias directives with Alias ones
# (e.g. ScriptAlias /cgi-bin/ /path/to/cgi-bin/ will change to
# Alias /cgi-bin/ /path/to/cgi-bin/)
# 3) Put the x-suphp-cgi handler inside your cgi-bin:
# <Location /path/to/cgi-bin/>
# SetHandler x-suphp-cgi
# ...
# </Location>
<IfDefine SUPHP>
<IfModule !mod_suphp.c>
LoadModule suphp_module modules/mod_suphp.so
</IfModule>
<IfModule mod_mime.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php5 .php5
AddType application/x-httpd-php4 .php4
AddType application/x-httpd-phtml .phtml
AddType application/x-suphp-cgi .cgi .pl
</IfModule>
AddHandler x-httpd-php .php
AddHandler x-httpd-php5 .php5
AddHandler x-httpd-php4 .php4
AddHandler x-httpd-phtml .phtml
AddHandler x-suphp-cgi .cgi .pl
suPHP_Engine on
<Location />
SuPHP_AddHandler x-httpd-php
SuPHP_AddHandler x-httpd-php5
SuPHP_AddHandler x-httpd-php4
SuPHP_AddHandler x-httpd-phtml
SuPHP_AddHandler x-suphp-cgi
</Location>
SuPHP_UserGroup apache apache
AddDirectoryIndex index.php index.php5 index.php4 index.php3 index.phtml
</IfDefine>
|