# TODO: make proxy port configurable.
cat <<EOF > ${MONITOR_HTTP_CONF}
-NameVirtualHost ${PLC_MONITOR_IP}:80
+NameVirtualHost *
-<VirtualHost ${PLC_MONITOR_IP}:80>
+<VirtualHost *>
ServerName ${PLC_MONITOR_HOST}
ServerAdmin ${PLC_MONITOR_EMAIL}
UseCanonicalName Off
ServerSignature Off
- DocumentRoot ${MONITORPATH}/web/MonitorWeb/monitorweb
-
- <Directory "${MONITORPATH}/web/MonitorWeb/monitorweb">
- Options Indexes FollowSymLinks
- AllowOverride None
- Order allow,deny
- Allow from all
- </Directory>
+ # NOTE: this appears to alter the global document root, for port 80...
+ # not sure if it's possible to serve two different 'virtualhosts' from
+ # the same port and same hostname with different document roots...
+ #DocumentRoot ${MONITORPATH}/web/MonitorWeb/monitorweb
+
+ #<Directory "${MONITORPATH}/web/MonitorWeb/monitorweb">
+ # Options Indexes FollowSymLinks
+ # AllowOverride None
+ # Order allow,deny
+ # Allow from all
+ #</Directory>
#LogLevel debug
Errorlog /var/log/httpd/monitorwebapp-error_log
<body>
<div id="header">Monitor : ${page_title}</div>
- <table valign="top" border="1" bgcolor="white" align="center" width="60em">
+ <table valign="top" border="1" bgcolor="white" align="center" width="700px">
<tr>
<td>
<table id="nps-table" width="100%">
-NameVirtualHost 128.112.139.116:80
+NameVirtualHost *
-<VirtualHost 128.112.139.116:80>
+<VirtualHost *>
ServerName pl-virtual-06.cs.princeton.edu
ServerAdmin soltesz@cs.princeton.edu
UseCanonicalName Off
ServerSignature Off
- DocumentRoot /usr/share/monitor/web/MonitorWeb/monitorweb
+ #DocumentRoot /usr/share/monitor/web/MonitorWeb/monitorweb
- <Directory "/usr/share/monitor/web/MonitorWeb/monitorweb">
- Options Indexes FollowSymLinks
- AllowOverride None
- Order allow,deny
- Allow from all
- </Directory>
+ #<Directory "/usr/share/monitor/web/MonitorWeb/monitorweb">
+ # Options Indexes FollowSymLinks
+ # AllowOverride None
+ # Order allow,deny
+ # Allow from all
+ #</Directory>
Errorlog /var/log/httpd/monitorwebapp-error_log
Customlog /var/log/httpd/monitorwebapp-access_log common