|
13 | 13 | ServerAdmin webmaster@<tmpl_var name='domain'> |
14 | 14 |
|
15 | 15 | ErrorLog <tmpl_var name='document_root'>/log/error.log |
16 | | - |
17 | 16 | <tmpl_if name='errordocs' op='==' value='y'> |
| 17 | + |
18 | 18 | ErrorDocument 400 /error/invalidSyntax.html |
19 | 19 | ErrorDocument 401 /error/authorizationRequired.html |
20 | 20 | ErrorDocument 403 /error/forbidden.html |
21 | 21 | ErrorDocument 404 /error/fileNotFound.html |
22 | 22 | ErrorDocument 405 /error/methodNotAllowed.html |
23 | 23 | ErrorDocument 500 /error/internalServerError.html |
24 | 24 | ErrorDocument 503 /error/overloaded.html |
| 25 | +</tmpl_if> |
25 | 26 |
|
26 | | -</tmpl_if> |
27 | 27 | <Directory {tmpl_var name='web_document_root_www'}> |
28 | 28 | Options None |
29 | 29 | AllowOverride Indexes AuthConfig Limit FileInfo |
|
78 | 78 |
|
79 | 79 | RewriteEngine on |
80 | 80 | <tmpl_loop name="redirects"> |
81 | | - |
82 | 81 | RewriteCond %{HTTP_HOST} ^<tmpl_var name='rewrite_domain'> [NC] |
83 | 82 | RewriteRule ^/(.*)$ <tmpl_var name='rewrite_target'>$1 [<tmpl_var name='rewrite_type'>] |
84 | 83 | </tmpl_loop> |
85 | 84 | </tmpl_if> |
| 85 | +<tmpl_if name='php' op='!=' value=''> |
86 | 86 |
|
| 87 | + php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@<tmpl_var name='domain'>" |
| 88 | + #php_admin_value open_basedir <tmpl_var name='web_document_root'>:/usr/share/php5 |
| 89 | + php_admin_value upload_tmp_dir <tmpl_var name='web_document_root'>/tmp |
| 90 | + php_admin_value session.save_path <tmpl_var name='web_document_root'>/tmp |
| 91 | +</tmpl_if> |
87 | 92 | <tmpl_var name='apache_directives'> |
88 | | - |
89 | 93 | </VirtualHost> |
90 | 94 |
|
91 | 95 |
|
92 | 96 |
|
93 | 97 | <tmpl_if name='ssl_enabled'> |
94 | | - |
95 | 98 | <IfModule mod_ssl.c> |
96 | 99 | ########################################################### |
97 | 100 | # SSL Vhost |
|
106 | 109 | ServerAdmin webmaster@<tmpl_var name='domain'> |
107 | 110 |
|
108 | 111 | ErrorLog <tmpl_var name='document_root'>/log/error.log |
109 | | - |
| 112 | + |
110 | 113 | <tmpl_if name='errordocs' op='==' value='y'> |
111 | 114 | ErrorDocument 400 /error/invalidSyntax.html |
112 | 115 | ErrorDocument 401 /error/authorizationRequired.html |
|
164 | 167 | RewriteRule ^/(.*)$ <tmpl_var name='rewrite_target'>$1 [<tmpl_var name='rewrite_type'>] |
165 | 168 | </tmpl_loop> |
166 | 169 | </tmpl_if> |
| 170 | +<tmpl_if name='php' op='!=' value=''> |
| 171 | + |
| 172 | + php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@<tmpl_var name='domain'>" |
| 173 | + #php_admin_value open_basedir <tmpl_var name='web_document_root'>:/usr/share/php5 |
| 174 | + php_admin_value upload_tmp_dir <tmpl_var name='web_document_root'>/tmp |
| 175 | + php_admin_value session.save_path <tmpl_var name='web_document_root'>/tmp |
| 176 | +</tmpl_if> |
167 | 177 |
|
168 | 178 | </VirtualHost> |
169 | 179 | </IfModule> |
|
0 commit comments