| | |
| | | PerlOptions +ParseHeaders |
| | | Options +ExecCGI |
| | | </Directory> |
| | | <Directory {tmpl_var name='web_document_root'}> |
| | | PerlResponseHandler ModPerl::Registry |
| | | PerlOptions +ParseHeaders |
| | | Options +ExecCGI |
| | | </Directory> |
| | | <Files *.pl> |
| | | SetHandler perl-script |
| | | </Files> |
| | |
| | | </IfModule> |
| | | </tmpl_if> |
| | | # Clear PHP settings of this website |
| | | <FilesMatch "\.ph(p3?|tml)$"> |
| | | <FilesMatch ".+\.ph(p[345]?|t|tml)$"> |
| | | SetHandler None |
| | | </FilesMatch> |
| | | <tmpl_if name='php' op='==' value='mod'> |
| | |
| | | # FcgidMaxProcesses 1000 |
| | | FcgidMaxRequestsPerProcess <tmpl_var name='fastcgi_max_requests'> |
| | | FcgidMinProcessesPerClass 0 |
| | | FcgidMaxProcessesPerClass 100 |
| | | FcgidMaxProcessesPerClass 10 |
| | | FcgidConnectTimeout 3 |
| | | FcgidIOTimeout 600 |
| | | FcgidBusyTimeout 3600 |
| | |
| | | <Directory {tmpl_var name='web_document_root_www'}> |
| | | AddHandler fcgid-script .php .php3 .php4 .php5 |
| | | FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php |
| | | FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php3 |
| | | FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php4 |
| | | FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php5 |
| | | Options +ExecCGI |
| | | AllowOverride <tmpl_var name='allow_override'> |
| | | <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
| | |
| | | <Directory {tmpl_var name='web_document_root'}> |
| | | AddHandler fcgid-script .php .php3 .php4 .php5 |
| | | FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php |
| | | FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php3 |
| | | FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php4 |
| | | FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php5 |
| | | Options +ExecCGI |
| | | AllowOverride <tmpl_var name='allow_override'> |
| | | <tmpl_if name='apache_version' op='>' value='2.2' format='version'> |
| | |
| | | Allow from all |
| | | </tmpl_if> |
| | | </Directory> |
| | | AddHandler php5-fcgi .php |
| | | AddHandler php5-fcgi .php .php3 .php4 .php5 |
| | | Action php5-fcgi /php5-fcgi |
| | | Alias /php5-fcgi {tmpl_var name='document_root'}/cgi-bin/php5-fcgi-{tmpl_var name='ip_address'}-{tmpl_var name='port'}-{tmpl_var name='domain'} |
| | | <tmpl_if name='use_tcp'> |
| | |
| | | RewriteCond %{HTTP_HOST} <tmpl_var name='rewrite_domain'>$ [NC] |
| | | <tmpl_if name="rewrite_is_url" op="==" value="n"> |
| | | RewriteCond %{REQUEST_URI} !^/webdav/ |
| | | RewriteCond %{REQUEST_URI} !^/php5-fcgi/ |
| | | RewriteCond %{REQUEST_URI} !^<tmpl_var name='rewrite_target'> |
| | | </tmpl_if> |
| | | RewriteRule ^/(.*)$ <tmpl_var name='rewrite_target'><tmpl_if name="rewrite_add_path" op="==" value="y">$1</tmpl_if> <tmpl_var name='rewrite_type'> |