Index: trunk/DataStoreServer/web/conf/ubuntu-datastore.conf
===================================================================
--- trunk/DataStoreServer/web/conf/ubuntu-datastore.conf	(revision 42985)
+++ trunk/DataStoreServer/web/conf/ubuntu-datastore.conf	(revision 42985)
@@ -0,0 +1,51 @@
+#
+# Root of the data store (where the directory hierarchy lives
+#
+
+<VirtualHost *:80>
+    ServerName datastore.ifa.hawaii.edu
+    ServerAlias datastore
+
+    # Use a safe, static document root outside of the datastore directories.
+    # The Rewrites below prevent this from actually being served.
+    DocumentRoot "/var/www/html"
+
+    Alias       /ds     /data/MYHOST.0/datastore/dsroot/
+    ScriptAlias /ds-cgi /data/MYHOST.0/datastore/ds-cgi/
+
+    # ensure requests like http://datastore/foo/bar become http://datastore/ds/foo/bar
+    # NOTE: requires a2enmod rewrite
+    RewriteEngine On
+    RewriteCond %{REQUEST_URI} !^/ds(/|$)
+    RewriteCond %{REQUEST_URI} !^/ds-cgi(/|$)
+    RewriteRule ^/(.*)$ /ds/$1 [R=301,L] 
+
+   <Directory "/data/MYHOST.0/datastore/dsroot">
+    
+      # NOTE: requires a2enmod cgi
+      DirectoryIndex /ds-cgi/dsindex.cgi
+      Options None
+    
+      # turn on server side includes.  files will be processed for
+      # server side includes if they have the executable bit set.
+      # NOTE: requires a2enmod include
+      Options +Includes
+      XBitHack on
+    
+      AddType text/plain .txt
+      AddOutputFilter INCLUDES .txt
+    
+      AllowOverride None
+
+      # put in allowed IP addresses
+      Require ip 128.171.2.0/24
+    </Directory>
+    
+    # Location of the cgi scripts
+    <Directory "/data/MYHOST.0/datastore/ds-cgi">
+      Options ExecCGI
+      # put in allowed IP addresses
+      Require ip 128.171.2.0/24
+    </Directory>
+    
+</VirtualHost>
