apache_apps.vhost.master 2.03 KB
Newer Older
1 2 3 4 5
######################################################
# This virtual host contains the configuration
# for the ISPConfig apps vhost
######################################################

6 7
{tmpl_var name='vhost_port_listen'} Listen {tmpl_var name='apps_vhost_port'}
# NameVirtualHost *:{tmpl_var name='apps_vhost_port'}
8

9
<VirtualHost {tmpl_var name='apps_vhost_ip'}:{tmpl_var name='apps_vhost_port'}>
10
  ServerAdmin webmaster@localhost
11
  {tmpl_var name='apps_vhost_servername'}
Oliver's avatar
Oliver committed
12
  
13 14 15
  <FilesMatch "\.ph(p3?|tml)$">
    SetHandler None
  </FilesMatch>
16 17 18 19
  
  <IfModule mod_headers.c>
	RequestHeader unset Proxy early
  </IfModule>
Oliver's avatar
Oliver committed
20
  
21
  <IfModule mod_php5.c>
22
    DocumentRoot {tmpl_var name='apps_vhost_dir'}
23
    AddType application/x-httpd-php .php
24 25 26
    <Directory {tmpl_var name='apps_vhost_dir'}>
		Options FollowSymLinks
		AllowOverride None
27
		<tmpl_if name='apache_version' op='>' value='2.2' format='version'>
28
		Require all granted
29
		<tmpl_else>
30 31
		Order allow,deny
		Allow from all
32
		</tmpl_if>
33 34 35
    </Directory>
  </IfModule>
  
36
  <IfModule mod_php7.c>
37
    DocumentRoot {tmpl_var name='apps_vhost_dir'}
38
    AddType application/x-httpd-php .php
39 40 41
    <Directory {tmpl_var name='apps_vhost_dir'}>
		Options FollowSymLinks
		AllowOverride None
42
		<tmpl_if name='apache_version' op='>' value='2.2' format='version'>
43
		Require all granted
44
		<tmpl_else>
45 46
		Order allow,deny
		Allow from all
47
		</tmpl_if>
48 49 50
    </Directory>
  </IfModule>
  
51
  <IfModule mod_fcgid.c>
52
    DocumentRoot {tmpl_var name='apps_vhost_dir'}
53
    SuexecUserGroup ispapps ispapps
54
    <Directory {tmpl_var name='apps_vhost_dir'}>
55
		Options +Indexes +FollowSymLinks +MultiViews +ExecCGI
56
		AllowOverride AuthConfig Indexes Limit Options FileInfo
Oliver's avatar
Oliver committed
57 58 59
	    <FilesMatch "\.php$">
		  SetHandler fcgid-script
	    </FilesMatch>
60
		FCGIWrapper {tmpl_var name='apps_vhost_basedir'}/php-fcgi-scripts/apps/.php-fcgi-starter .php
61
		<tmpl_if name='apache_version' op='>' value='2.2' format='version'>
62
		Require all granted
63
		<tmpl_else>
64 65
		Order allow,deny
		Allow from all
66
		</tmpl_if>
67 68 69 70 71 72
    </Directory>
  </IfModule>

</VirtualHost>