apache_ispconfig.vhost.master 2.04 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
{vhost_port_listen} Listen {vhost_port}
daniel's avatar
daniel committed
8
NameVirtualHost *:{vhost_port}
tbrehm's avatar
tbrehm committed
9

daniel's avatar
daniel committed
10
<VirtualHost _default_:{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/>
redray's avatar
redray committed
21 22 23
      Options Indexes FollowSymLinks MultiViews +ExecCGI
      AllowOverride AuthConfig Indexes Limit Options FileInfo
      AddHandler fcgid-script .php
24
      FCGIWrapper /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter .php
redray's avatar
redray committed
25 26 27
      Order allow,deny
      Allow from all
    </Directory>
28
    IPCCommTimeout  7200
redray's avatar
redray committed
29 30
  </IfModule>
  
31 32 33 34 35 36 37 38 39 40 41 42 43
  <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"
      Options FollowSymLinks
      AllowOverride None
      Order allow,deny
      Allow from all
	  php_value magic_quotes_gpc        0
    </Directory>
  </IfModule>
redray's avatar
redray committed
44 45 46 47
  
  # ErrorLog /var/log/apache2/error.log
  # CustomLog /var/log/apache2/access.log combined
  ServerSignature Off
48 49 50 51 52
  
  <IfModule mod_security2.c>
    SecRuleEngine Off
  </IfModule>

53 54 55 56
  # SSL Configuration
  {ssl_comment}SSLEngine On
  {ssl_comment}SSLCertificateFile /usr/local/ispconfig/interface/ssl/ispserver.crt
  {ssl_comment}SSLCertificateKeyFile /usr/local/ispconfig/interface/ssl/ispserver.key
57
  {ssl_bundle_comment}SSLCACertificateFile /usr/local/ispconfig/interface/ssl/ispserver.bundle
redray's avatar
redray committed
58

59 60
</VirtualHost>

61 62 63 64 65 66 67 68 69 70 71
<Directory /var/www/php-cgi-scripts>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<Directory /var/www/php-fcgi-scripts>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>
72