]> git.proxmox.com Git - pve-manager.git/blob - www/templates/pve.conf
removed automake/autoconf, removed unused files
[pve-manager.git] / www / templates / pve.conf
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 /etc/pve/local/pve-ssl.pem
33 SSLCertificateKeyFile /etc/pve/local/pve-ssl.key
34
35 RewriteEngine on
36 RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
37 RewriteRule .* - [F]
38
39 DocumentRoot /usr/share/pve-manager/root
40 <Directory />
41 Options FollowSymLinks
42 AllowOverride None
43 </Directory>
44
45 <Directory /usr/share/pve-manager/root>
46 Options FollowSymLinks MultiViews
47 AllowOverride None
48 Order allow,deny
49 allow from all
50 </Directory>
51
52 Alias /pve2/css/ /usr/share/pve-manager/css/
53 Alias /pve2/ext4 /usr/share/pve-manager/ext4/
54 Alias /pve2/images/ /usr/share/pve-manager/images/
55 Alias /vncterm/ /usr/share/vncterm/
56
57 # avoid authentication when accessing favicon
58 Alias /favicon.ico /usr/share/pve-manager/images/favicon.ico
59
60 PerlRequire /usr/share/pve-manager/startup.pl
61
62 <Location /index.pl>
63 SetHandler perl-script
64 PerlHandler ModPerl::Registry
65 Options ExecCGI
66 </Location>
67
68 <Location /api2/>
69 SetHandler perl-script
70 PerlHandler PVE::REST
71 </Location>
72
73 </VirtualHost>
74