1 <IfModule mpm_prefork_module>
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"
22 DocumentRoot @WWW_ROOTDIR@
24 Options FollowSymLinks
28 <Directory @WWW_ROOTDIR@>
29 Options FollowSymLinks MultiViews
35 ErrorLog /var/log/apache2/error.log
39 # do not log access to our ajax services
40 SetEnvIf Request_URI "^/ws/" dontlog
42 CustomLog /var/log/apache2/access.log combined env=!dontlog
44 Alias /images/ @WWW_IMAGEDIR@/
45 Alias /css/ @WWW_CSSDIR@/
46 Alias /ext/ @WWW_EXTDIR@/
47 Alias /javascript/ /usr/share/javascript/
48 Alias /vncterm/ /usr/share/vncterm/
50 # avoid authentication when accessing favicon
51 Alias /favicon.ico @WWW_IMAGEDIR@/favicon.ico
54 EMBPERL_SESSION_ARGS "config=DB_File Lock=Semaphore"
56 AddType text/html .epl
58 PerlRequire @WWW_ROOTDIR@/startup.pl
60 PerlSetVar PVESatisfy any
62 PerlSetVar PVELoginScript /login.pl
64 PerlTransHandler PVE::URLRewrite
66 Alias /nrd/ /__no_real_dir__/
68 <Directory "@WWW_ROOTDIR@">
69 AuthType PVE::AuthCookieHandler
71 PerlSetVar PVECookieName PVEAuthCookie
72 #PerlSetVar AuthCookieDebug 5
74 PerlAuthenHandler PVE::AuthCookieHandler->authenticate
75 PerlAuthzHandler PVE::AuthCookieHandler->authorize
79 DirectoryIndex index.htm index.pl
81 <FilesMatch ".*\.htm$">
83 EMBPERL_SYNTAX EmbperlBlocks
84 EMBPERL_OBJECT_BASE base.epl
85 EMBPERL_INPUT_ESCMODE 0
87 SetHandler perl-script
88 PerlHandler Embperl::Object
91 <FilesMatch ".*\.epl$">
95 <FilesMatch ".*\.pl$">
96 SetHandler perl-script
97 PerlHandler ModPerl::Registry
103 <Location /nrd/LOGIN>
104 AuthType PVE::AuthCookieHandler
106 PerlSetVar PVECookieName PVEAuthCookie
107 #PerlSetVar AuthCookieDebug 5
108 SetHandler perl-script
109 PerlHandler PVE::AuthCookieHandler->login
113 SetHandler perl-script
114 PerlHandler $PVE::HTMLServices::Obj->handler
120 SSLProtocol all -SSLv2
121 SSLCertificateFile @PROXMOX_ETC@/pve-ssl.pem
122 SSLCertificateKeyFile @PROXMOX_ETC@/pve-ssl.key
125 RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
131 #RewriteLog "/root/rewrite.log"
134 RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
136 RewriteCond %{REQUEST_URI} !^/nrd/
137 RewriteCond %{REQUEST_URI} !^/images/
138 RewriteCond %{REQUEST_URI} !^/css/
139 RewriteCond %{REQUEST_URI} !^/ext/
140 RewriteCond %{REQUEST_URI} !^/javascript/
141 RewriteCond %{REQUEST_URI} !^/vncterm/
142 RewriteCond %{REQUEST_URI} !^/.*\.js$
143 RewriteCond %{REQUEST_URI} !^/login.pl$
144 RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [L,R]