Till Brehm
2014-10-16 53124ed9dc52e8aee60d9018ffb32c18f03c4daa
commit | author | age
b4c750 1
T 2 ######################################################
3 # This virtual host contains the configuration
4 # for the ISPConfig controlpanel
5 ######################################################
6
ccbf14 7 <tmpl_var name="vhost_port_listen"> Listen <tmpl_var name="vhost_port">
TB 8 NameVirtualHost *:<tmpl_var name="vhost_port">
b4c750 9
ccbf14 10 <VirtualHost _default_:<tmpl_var name="vhost_port">>
2fe2c7 11   ServerAdmin webmaster@localhost
R 12   
bfcdef 13   <FilesMatch "\.ph(p3?|tml)$">
T 14     SetHandler None
15   </FilesMatch>
16   
9787a0 17   <IfModule mod_fcgid.c>
0731a3 18     DocumentRoot /var/www/ispconfig/
2fe2c7 19     SuexecUserGroup ispconfig ispconfig
0731a3 20     <Directory /var/www/ispconfig/>
5545f1 21       Options -Indexes +FollowSymLinks +MultiViews +ExecCGI
2fe2c7 22       AllowOverride AuthConfig Indexes Limit Options FileInfo
3bc1e1 23       <FilesMatch "\.php$">
MC 24           SetHandler fcgid-script
25       </FilesMatch>
0731a3 26       FCGIWrapper /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter .php
ccbf14 27       <tmpl_if name='apache_version' op='>' value='2.2' format='version'>
TB 28       Require all granted
29       <tmpl_else>
2fe2c7 30       Order allow,deny
R 31       Allow from all
ccbf14 32       </tmpl_if>
2fe2c7 33     </Directory>
10b4c8 34     IPCCommTimeout  7200
3f478f 35     MaxRequestLen 15728640
2fe2c7 36   </IfModule>
R 37   
cc6568 38   <IfModule mpm_itk_module>
H 39     DocumentRoot /usr/local/ispconfig/interface/web/
40     AssignUserId ispconfig ispconfig
41     AddType application/x-httpd-php .php
42     <Directory /usr/local/ispconfig/interface/web>
43       # php_admin_value open_basedir "/usr/local/ispconfig/interface:/usr/share:/tmp"
5545f1 44       Options +FollowSymLinks
cc6568 45       AllowOverride None
ccbf14 46       <tmpl_if name='apache_version' op='>' value='2.2' format='version'>
TB 47       Require all granted
48       <tmpl_else>
cc6568 49       Order allow,deny
H 50       Allow from all
ccbf14 51       </tmpl_if>
cc6568 52       php_value magic_quotes_gpc        0
H 53     </Directory>
54   </IfModule>
2fe2c7 55   
R 56   # ErrorLog /var/log/apache2/error.log
57   # CustomLog /var/log/apache2/access.log combined
58   ServerSignature Off
cab924 59   
T 60   <IfModule mod_security2.c>
61     SecRuleEngine Off
62   </IfModule>
63
4ae2a0 64   # SSL Configuration
ccbf14 65   <tmpl_var name="ssl_comment">SSLEngine On
53124e 66   <tmpl_var name="ssl_comment">SSLProtocol All -SSLv2 -SSLv3
ccbf14 67   <tmpl_var name="ssl_comment">SSLCertificateFile /usr/local/ispconfig/interface/ssl/ispserver.crt
TB 68   <tmpl_var name="ssl_comment">SSLCertificateKeyFile /usr/local/ispconfig/interface/ssl/ispserver.key
69   <tmpl_var name="ssl_bundle_comment">SSLCACertificateFile /usr/local/ispconfig/interface/ssl/ispserver.bundle
a014c2 70
313e33 71 </VirtualHost>
T 72
e9a25c 73 <Directory /var/www/php-cgi-scripts>
T 74     AllowOverride None
ccbf14 75     <tmpl_if name='apache_version' op='>' value='2.2' format='version'>
TB 76     Require all denied
77     <tmpl_else>
e9a25c 78     Order Deny,Allow
T 79     Deny from all
ccbf14 80     </tmpl_if>
e9a25c 81 </Directory>
T 82
83 <Directory /var/www/php-fcgi-scripts>
84     AllowOverride None
ccbf14 85     <tmpl_if name='apache_version' op='>' value='2.2' format='version'>
TB 86     Require all denied
87     <tmpl_else>
e9a25c 88     Order Deny,Allow
T 89     Deny from all
ccbf14 90     </tmpl_if>
e9a25c 91 </Directory>
313e33 92