-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebmo.conf
40 lines (32 loc) · 1.04 KB
/
webmo.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<VirtualHost *:8080>
DocumentRoot ${WEBMO_INSTALL}
PassEnv SLURM_CONF
<Location "/cgi-bin/debug.cgi">
SetEnvIf X-Forwarded-For ^131\.187\.45\.7$ allowed
<RequireAny>
Require env allowed
</RequireAny>
</Location>
<Directory> "${WEBMO_INSTALL}">
Require all granted
</Directory>
ScriptAlias /cgi-bin/webmo "${WEBMO_INSTALL}/cgi-bin"
<Directory "${WEBMO_INSTALL}/cgi-bin">
Options +ExecCGI
AllowOverride None
Require all granted
SetEnv PERL5LIB "${WEBMO_INSTALL}/cgi-bin:/usr/local/lib64/perl5:/usr/local/share/perl5:/usr/lib64/perl5/vendor_perl:/usr/share/perl5/vendor_perl:/usr/lib64/perl5:/usr/share/perl5"
PassEnv WEBMO_USER_BASE
<FilesMatch ".+(\.cgi)$">
SetHandler cgi-script
</FilesMatch>
</Directory>
Alias /status /var/www/html/status
<Location "/status">
Require all granted
</Location>
SetEnvIf User-Agent ".*kube-probe.*" nolog=1
SetEnvIf Request_URI "^/status$" nolog=1
ErrorLog /dev/stderr
CustomLog "/dev/stdout" combined env=!nolog
</VirtualHost>