apache_ispconfig.vhost.master 3.85 KB
Newer Older
tbrehm's avatar
tbrehm committed
1 2 3 4 5
######################################################
# This virtual host contains the configuration
# for the ISPConfig controlpanel
######################################################

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

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

63
  # SSL Configuration
64
  <tmpl_var name="ssl_comment">SSLEngine On
65
  <tmpl_var name="ssl_comment">SSLProtocol All -SSLv2 -SSLv3
66 67 68
  <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
69

Marius Burkard's avatar
Marius Burkard committed
70
  <tmpl_var name="ssl_comment">SSLCipherSuite ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4
71 72 73 74 75 76 77 78 79 80 81
  <tmpl_var name="ssl_comment">SSLHonorCipherOrder On

  <IfModule mod_headers.c>
    Header always add Strict-Transport-Security "max-age=15768000"
  </IfModule>

<tmpl_if name='apache_version' op='>=' value='2.4' format='version'>
  <tmpl_var name="ssl_comment">SSLUseStapling on
  <tmpl_var name="ssl_comment">SSLStaplingResponderTimeout 5
  <tmpl_var name="ssl_comment">SSLStaplingReturnResponderErrors off
</tmpl_if>
82 83
</VirtualHost>

84 85 86 87 88 89
<tmpl_if name='apache_version' op='>=' value='2.4' format='version'>
<IfModule mod_ssl.c>
  <tmpl_var name="ssl_comment">SSLStaplingCache shmcb:/var/run/ocsp(128000)
</IfModule>
</tmpl_if>

90 91
<Directory /var/www/php-cgi-scripts>
    AllowOverride None
92 93 94
	<tmpl_if name='apache_version' op='>' value='2.2' format='version'>
	Require all denied
	<tmpl_else>
95 96
    Order Deny,Allow
    Deny from all
97
	</tmpl_if>
98 99 100 101
</Directory>

<Directory /var/www/php-fcgi-scripts>
    AllowOverride None
102 103 104
    <tmpl_if name='apache_version' op='>' value='2.2' format='version'>
	Require all denied
	<tmpl_else>
105 106
    Order Deny,Allow
    Deny from all
107
	</tmpl_if>
Marius Burkard's avatar
Marius Burkard committed
108
</Directory>