4904: CGI sample works.
authorPeter Amstutz <peter.amstutz@curoverse.com>
Fri, 16 Jan 2015 18:54:42 +0000 (13:54 -0500)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Fri, 16 Jan 2015 18:54:42 +0000 (13:54 -0500)
apache2_vhost
arv-web-example.py
sample-cgi-app/public/.htaccess [new file with mode: 0644]
sample-cgi-app/public/index.cgi [changed mode: 0644->0755]

index c28d0aa516df3b234d3157451e8739d46dc936d5..dad4a9b57a98d640066b9b517ab4e7c7b1c570da 100644 (file)
   CustomLog ${APACHE_LOG_DIR}/access.log combined
 
   <Directory /mnt/public>
-    Options Indexes IncludesNoExec ExecCGI
-    AddHandler cgi-script .cgi
+    Options Indexes IncludesNoExec
     Options -MultiViews
-    AllowOverride None
+    AllowOverride All
     Order allow,deny
     Allow from all
   </Directory>
index 0329fa3acef05269a1c9637ae3b9870a43e3fbbf..63d760d2f124158c27e94ff83e6732882ff80026 100644 (file)
@@ -31,7 +31,7 @@ def run_fuse_mount(collection):
 
     mountdir = tempfile.mkdtemp()
 
-    operations = Operations(os.getuid(), os.getgid(), "utf-8")
+    operations = Operations(os.getuid(), os.getgid(), "utf-8", True)
     operations.inodes.add_entry(CollectionDirectory(llfuse.ROOT_INODE, operations.inodes, api, 2, collection))
 
     # Initialize the fuse connection
diff --git a/sample-cgi-app/public/.htaccess b/sample-cgi-app/public/.htaccess
new file mode 100644 (file)
index 0000000..e5145bd
--- /dev/null
@@ -0,0 +1,3 @@
+Options +ExecCGI
+AddHandler cgi-script .cgi
+DirectoryIndex index.cgi
old mode 100644 (file)
new mode 100755 (executable)