apache_ispconfig.vhost.master 2.66 KB
Newer Older
tbrehm's avatar
tbrehm committed
1
2
3
4
5
6

######################################################
# This virtual host contains the configuration
# for the ISPConfig controlpanel
######################################################

7
8
<tmpl_var name="vhost_port_listen"> Listen <tmpl_var name="vhost_port">
NameVirtualHost *:<tmpl_var name="vhost_port">
tbrehm's avatar
tbrehm committed
9

10
<VirtualHost _default_:<tmpl_var name="vhost_port">>
redray's avatar
redray committed
11
12
  ServerAdmin webmaster@localhost
  
13
14
15
16
  <FilesMatch "\.ph(p3?|tml)$">
    SetHandler None
  </FilesMatch>
  
17
  <IfModule mod_fcgid.c>
18
    DocumentRoot /var/www/ispconfig/
redray's avatar
redray committed
19
    SuexecUserGroup ispconfig ispconfig
20
    <Directory /var/www/ispconfig/>
21
      Options -Indexes +FollowSymLinks +MultiViews +ExecCGI
redray's avatar
redray committed
22
23
      AllowOverride AuthConfig Indexes Limit Options FileInfo
      AddHandler fcgid-script .php
24
      FCGIWrapper /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter .php
25
26
27
      <tmpl_if name='apache_version' op='>' value='2.2' format='version'>
	  Require all granted
	  <tmpl_else>
redray's avatar
redray committed
28
29
      Order allow,deny
      Allow from all
30
	  </tmpl_if>
redray's avatar
redray committed
31
    </Directory>
32
    IPCCommTimeout  7200
33
	MaxRequestLen 15728640
redray's avatar
redray committed
34
35
  </IfModule>
  
36
37
38
39
40
41
  <IfModule mpm_itk_module>
    DocumentRoot /usr/local/ispconfig/interface/web/
	AssignUserId ispconfig ispconfig
    AddType application/x-httpd-php .php
    <Directory /usr/local/ispconfig/interface/web>
      # php_admin_value open_basedir "/usr/local/ispconfig/interface:/usr/share:/tmp"
42
      Options +FollowSymLinks
43
      AllowOverride None
44
45
46
      <tmpl_if name='apache_version' op='>' value='2.2' format='version'>
	  Require all granted
	  <tmpl_else>
47
48
      Order allow,deny
      Allow from all
49
	  </tmpl_if>
50
51
52
	  php_value magic_quotes_gpc        0
    </Directory>
  </IfModule>
redray's avatar
redray committed
53
54
55
56
  
  # ErrorLog /var/log/apache2/error.log
  # CustomLog /var/log/apache2/access.log combined
  ServerSignature Off
57
58
59
60
61
  
  <IfModule mod_security2.c>
    SecRuleEngine Off
  </IfModule>

62
  # SSL Configuration
63
64
65
66
  <tmpl_var name="ssl_comment">SSLEngine On
  <tmpl_var name="ssl_comment">SSLCertificateFile /usr/local/ispconfig/interface/ssl/ispserver.crt
  <tmpl_var name="ssl_comment">SSLCertificateKeyFile /usr/local/ispconfig/interface/ssl/ispserver.key
  <tmpl_var name="ssl_bundle_comment">SSLCACertificateFile /usr/local/ispconfig/interface/ssl/ispserver.bundle
redray's avatar
redray committed
67

68
69
</VirtualHost>

70
71
<Directory /var/www/php-cgi-scripts>
    AllowOverride None
72
73
74
	<tmpl_if name='apache_version' op='>' value='2.2' format='version'>
	Require all denied
	<tmpl_else>
75
76
    Order Deny,Allow
    Deny from all
77
	</tmpl_if>
78
79
80
81
</Directory>

<Directory /var/www/php-fcgi-scripts>
    AllowOverride None
82
83
84
    <tmpl_if name='apache_version' op='>' value='2.2' format='version'>
	Require all denied
	<tmpl_else>
85
86
    Order Deny,Allow
    Deny from all
87
	</tmpl_if>
88
</Directory>
89