Index: /trunk/DataStoreServer/example/foo
===================================================================
--- /trunk/DataStoreServer/example/foo	(revision 42985)
+++ /trunk/DataStoreServer/example/foo	(revision 42985)
@@ -0,0 +1,1 @@
+asfasfd
Index: /trunk/DataStoreServer/example/fs_example.txt
===================================================================
--- /trunk/DataStoreServer/example/fs_example.txt	(revision 42985)
+++ /trunk/DataStoreServer/example/fs_example.txt	(revision 42985)
@@ -0,0 +1,1 @@
+foo|||text
Index: /trunk/DataStoreServer/notes.txt
===================================================================
--- /trunk/DataStoreServer/notes.txt	(revision 42985)
+++ /trunk/DataStoreServer/notes.txt	(revision 42985)
@@ -0,0 +1,61 @@
+
+Here is the current (2026.04.11) directory listing of /export/ipp113.0/datastore/ds-cgi:
+
+UNKNOWN:
+-rwxrwxr-x 1 eugene users 4551 Oct 17  2017 Smfpermissions.pm*
+-rwxrwxr-x 1 mhuber users 3759 Oct 12  2017 Smfpermissions.pm.old20160830*
+
+TRASH:
+drwxrwxr-x 2 eugene users   30 Jul  8  2009 dsroot/
+
+in web/cgi:
+-rwxr-xr-x 1 eugene users  618 Jul  8  2009 dodsfits*         [UP TO DATE]
+-rw-rw-r-- 1 eugene users  565 Jul  8  2009 dsdbh.pm          [UP TO DATE] [**** also in /scripts ****]
+-rwxrwxr-x 1 eugene users   44 Jul  8  2009 dsfits.cgi*       [UP TO DATE]
+-rwxrwxr-x 1 eugene users 7703 Apr 25  2013 dsgetindex*       [UP TO DATE]
+-rwxrwxr-x 1 eugene users   60 Apr 22  2013 dsindex.cgi*      [UP TO DATE]
+-rw-rw-r-- 1 eugene users  525 May  1  2018 dsshellconfig     [Has changes relevant to the local installation]
+-rwxrwxr-x 1 eugene users   57 Jul  8  2009 dstxtindex.cgi*   [UP TO DATE]
+-rwxrwxr-x 1 eugene users 4951 Sep 15  2017 findskycalcmf.pl* [Has changes relevant to the local installation -- does this work??]
+-rwxrwxr-x 1 eugene users 7820 Sep 15  2017 findsmf.pl*       [Has some changes related to permissions]
+-rwxrwxr-x 1 eugene users 4724 Aug 30  2016 listsmfs.pl*      [minor commented-out change]
+
+TEST / CONFIG files:
+-rw-rw-r-- 1 eugene users   40 Aug 29  2016 foo.smf
+-rw-rw-r-- 1 eugene users   50 Jul  8  2009 index.txt
+-rwxrwxr-x 1 eugene users 1426 Apr 25  2013 myecho*
+-rwxrwxr-x 1 eugene users   52 Apr 25  2013 myecho.cgi*
+-rw-r--r-- 1 eugene users   40 Oct 22  2009 passwords
+-rw-rw-r-- 1 eugene users  119 Sep 29  2009 redirectroot
+-rwxrwxr-x 1 eugene users  292 Jun 21  2011 test.cgi*
+
+in scripts/
+-rw-rw-r-- 1 eugene users  565 Jul  8  2009 dsdbh.pm       [UP TO DATE]
+-rwxr-xr-x 1 eugene users 3406 Sep 10  2009 dsfsindex*     [UP TO DATE]
+-rwxr-xr-x 1 eugene users 4044 Aug 23  2016 dsprodindex*   [UP TO DATE]
+-rwxr-xr-x 1 eugene users 1470 Apr 22  2013 dsrootindex*   [UP TO DATE]
+
+the following are in DataStoreServer directories, but missing from /ds-cgi:
+scripts/dsprodtool
+scripts/dsreg
+scripts/installscripts
+scripts/Makefile
+scripts/Makefile.am
+scripts/Makefile.in
+scripts/tabledefs.sql
+web-cgi/index.txt.template
+
+---------
+
+How to set up a local database to host the IPP datastore:
+
+* create a database to host the relevant tables:
+  in mysql, create the test database:
+  > create database test_datastore;
+  create the tables:
+  # mysql -h localhost -u ipp -p test_datastore < scripts/tabledefs.sql
+
+  This generates the tables needed by the datastore web pages and tools
+
+----------
+
Index: /trunk/DataStoreServer/scripts/tabledefs.sql
===================================================================
--- /trunk/DataStoreServer/scripts/tabledefs.sql	(revision 42984)
+++ /trunk/DataStoreServer/scripts/tabledefs.sql	(revision 42985)
@@ -1,6 +1,6 @@
-DROP TABLE IF EXISTS dsFileType;
-DROP TABLE IF EXISTS dsFile;
-DROP TABLE IF EXISTS dsFileset;
-DROP TABLE IF EXISTS dsProduct;
+# DROP TABLE IF EXISTS dsFileType;
+# DROP TABLE IF EXISTS dsFile;
+# DROP TABLE IF EXISTS dsFileset;
+# DROP TABLE IF EXISTS dsProduct;
 
 #
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>
