added httpd/conf.d/monitorweb.conf to /etc/plc.d/monitor.init
[monitor.git] / web / monitorweb-httpd.conf
1 NameVirtualHost 128.112.139.116:80
2
3 <VirtualHost 128.112.139.116:80>
4     ServerName pl-virtual-06.cs.princeton.edu
5     ServerAdmin soltesz@cs.princeton.edu
6     UseCanonicalName Off
7     ServerSignature Off
8
9     DocumentRoot /usr/share/monitor/web/MonitorWeb/monitorweb
10
11     <Directory "/usr/share/monitor/web/MonitorWeb/monitorweb">
12         Options Indexes FollowSymLinks
13         AllowOverride None
14         Order allow,deny
15         Allow from all
16     </Directory>
17
18     Errorlog /var/log/httpd/monitorwebapp-error_log
19     Customlog /var/log/httpd/monitorwebapp-access_log common
20
21     AddDefaultCharset utf-8
22
23     #NOTE: This doesn't work as expected.
24     #   Load everything out of the DocumentRoot that is static
25     #   ProxyPass /monitor/static !
26
27     ProxyPass /tg_js http://127.0.0.1:8080/tg_js
28     ProxyPassReverse /tg_js http://127.0.0.1:8080/tg_js
29
30     ProxyPass /monitor http://127.0.0.1:8080
31     ProxyPassReverse /monitor http://127.0.0.1:8080
32
33     ProxyPreserveHost On
34     ProxyRequests Off
35
36 </VirtualHost>