Marius Burkard
2016-07-10 e1ceb050e19c7574bca146a8da7047ee4ff456b5
commit | author | age
ff1d9a 1
W 2 ######################################################
3 # This virtual host contains the configuration
4 # for the ISPConfig controlpanel
5 ######################################################
6
7 {vhost_port_listen} Listen {vhost_port}
8 NameVirtualHost *:{vhost_port}
9
10 <VirtualHost _default_:{vhost_port}>
11   ServerAdmin webmaster@localhost
12   
13   <IfModule mod_fcgid.c>
14     DocumentRoot /var/www/ispconfig/
15     SuexecUserGroup ispconfig ispconfig
16     <Directory /var/www/ispconfig/>
5545f1 17       Options +Indexes +FollowSymLinks +MultiViews +ExecCGI
ff1d9a 18       AllowOverride AuthConfig Indexes Limit Options FileInfo
W 19       <FilesMatch "\.ph(p[3-5]?|tml)$">
20            SetHandler fcgid-script
21       </FilesMatch>
22       FCGIWrapper /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter .php
23       Order allow,deny
24       Allow from all
25     </Directory>
26     DirectoryIndex index.php
27   </IfModule>
28   
29   <IfModule mod_php5.c>
30     DocumentRoot /usr/local/ispconfig/interface/web/
31     AddType application/x-httpd-php .php
32     <Directory /usr/local/ispconfig/interface/web>
5545f1 33       Options +FollowSymLinks
ff1d9a 34       AllowOverride None
W 35       Order allow,deny
36       Allow from all
37       php_value magic_quotes_gpc        0
38     </Directory>
39   </IfModule>
40   
41   # ErrorLog /var/log/apache2/error.log
42   # CustomLog /var/log/apache2/access.log combined
43   ServerSignature Off
44   
45   <IfModule mod_security2.c>
46     SecRuleEngine Off
47   </IfModule>
48
49   # SSL Configuration
50   {ssl_comment}SSLEngine On
51   {ssl_comment}SSLCertificateFile /usr/local/ispconfig/interface/ssl/ispserver.crt
52   {ssl_comment}SSLCertificateKeyFile /usr/local/ispconfig/interface/ssl/ispserver.key
53
54 </VirtualHost>
55
56 <Directory /var/www/php-cgi-scripts>
57     AllowOverride None
58     Order Deny,Allow
59     Deny from all
60 </Directory>
61
62 <Directory /var/www/php-fcgi-scripts>
63     AllowOverride None
64     Order Deny,Allow
65     Deny from all
66 </Directory>
67