Till Brehm
2016-07-24 b9a3ef486ebcde18a5ade37865ff8f397185d24f
commit | author | age
c9b9f2 1
T 2 ######################################################
3 # This virtual host contains the configuration
4 # for the ISPConfig apps vhost
5 ######################################################
6
ccbf14 7 {tmpl_var name='vhost_port_listen'} Listen {tmpl_var name='apps_vhost_port'}
TB 8 # NameVirtualHost *:{tmpl_var name='apps_vhost_port'}
c9b9f2 9
ccbf14 10 <VirtualHost {tmpl_var name='apps_vhost_ip'}:{tmpl_var name='apps_vhost_port'}>
c9b9f2 11   ServerAdmin webmaster@localhost
ccbf14 12   {tmpl_var name='apps_vhost_servername'}
c9b9f2 13   
1272df 14   <FilesMatch "\.ph(p3?|tml)$">
TB 15     SetHandler None
16   </FilesMatch>
17   
bae4a6 18   <IfModule mod_headers.c>
TB 19     RequestHeader unset Proxy early
20   </IfModule>
21   
1ca823 22   <IfModule mod_php5.c>
ccbf14 23     DocumentRoot {tmpl_var name='apps_vhost_dir'}
1ca823 24     AddType application/x-httpd-php .php
ccbf14 25     <Directory {tmpl_var name='apps_vhost_dir'}>
TB 26         Options FollowSymLinks
27         AllowOverride None
28         <tmpl_if name='apache_version' op='>' value='2.2' format='version'>
29         Require all granted
30         <tmpl_else>
31         Order allow,deny
32         Allow from all
33         </tmpl_if>
1ca823 34     </Directory>
T 35   </IfModule>
36   
c9b9f2 37   <IfModule mod_fcgid.c>
ccbf14 38     DocumentRoot {tmpl_var name='apps_vhost_dir'}
c9b9f2 39     SuexecUserGroup ispapps ispapps
ccbf14 40     <Directory {tmpl_var name='apps_vhost_dir'}>
TB 41         Options +Indexes +FollowSymLinks +MultiViews +ExecCGI
42         AllowOverride AuthConfig Indexes Limit Options FileInfo
3bc1e1 43         <FilesMatch "\.php$">
MC 44           SetHandler fcgid-script
45         </FilesMatch>
ccbf14 46         FCGIWrapper {tmpl_var name='apps_vhost_basedir'}/php-fcgi-scripts/apps/.php-fcgi-starter .php
TB 47         <tmpl_if name='apache_version' op='>' value='2.2' format='version'>
48         Require all granted
49         <tmpl_else>
50         Order allow,deny
51         Allow from all
52         </tmpl_if>
c9b9f2 53     </Directory>
T 54   </IfModule>
55
56 </VirtualHost>
57
58