]> git.proxmox.com Git - pve-manager.git/blob - www/templates/pve.conf.in
imported from svn 'pve-manager/pve2'
[pve-manager.git] / www / templates / pve.conf.in
1 <IfModule mpm_prefork_module>
2 StartServers 2
3 MinSpareServers 1
4 MaxSpareServers 2
5 MaxClients 50
6 MaxRequestsPerChild 200
7 </IfModule>
8
9 ServerName localhost
10 ServerSignature Off
11 ServerTokens Prod
12 ServerAdmin root
13 AddDefaultCharset On
14
15 # Hint: Ajax use KeepAlive, which in effect disables MaxRequestsPerChild,
16 # so we need to disable KeepAlive to prevent exhaustive memory usage, or
17 # at least make sure that periodic updaters interval > KeepAliveTimeout
18 # or maybe we should set "MaxKeepAliveRequests 20"
19
20 KeepAlive Off
21
22 <IfModule mod_deflate.c>
23 AddOutputFilterByType DEFLATE application/json
24 </IfModule>
25
26 CustomLog ${APACHE_LOG_DIR}/access.log combined
27
28 Listen 8006
29 <VirtualHost *:8006>
30 SSLEngine on
31 SSLProtocol all -SSLv2
32 SSLCertificateFile @PROXMOX_ETC@/local/pve-ssl.pem
33 SSLCertificateKeyFile @PROXMOX_ETC@/local/pve-ssl.key
34
35 RewriteEngine on
36 RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
37 RewriteRule .* - [F]
38
39 DocumentRoot @WWW_ROOTDIR@
40 <Directory />
41 Options FollowSymLinks
42 AllowOverride None
43 </Directory>
44
45 <Directory @WWW_ROOTDIR@>
46 Options FollowSymLinks MultiViews
47 AllowOverride None
48 Order allow,deny
49 allow from all
50 </Directory>
51
52 Alias /pve2/ @WWW_BASEDIR@/
53 Alias /vncterm/ /usr/share/vncterm/
54
55 # avoid authentication when accessing favicon
56 Alias /favicon.ico @WWW_IMAGEDIR@/favicon.ico
57
58 PerlRequire @WWW_BASEDIR@/startup.pl
59
60 <Location /index.pl>
61 SetHandler perl-script
62 PerlHandler ModPerl::Registry
63 Options ExecCGI
64 </Location>
65
66 <Location /api2/>
67 SetHandler perl-script
68 PerlHandler PVE::REST
69 </Location>
70
71 </VirtualHost>
72