httpfs is a FUSE-based filesystem that uses HTTP messages to mount a remote directory on a local machine, relying on a generated server-side script (e.g. PHP) installed on the server.
-
Resolve dependencies and add the current user to the
fuse
group as described in the Prepare the environment paragraph. -
Install:
$ make # make install
-
If needed, uninstall:
# make uninstall
-
Generate a PHP script:
$ httpfs generate php > httpfs.php
-
Place the generated script in an accessible location inside the document root of your web server.
-
Mount the remote filesystem:
$ mkdir /tmp/httpfs/ $ httpfs mount http://target.com/httpfs.php /tmp/httpfs/ /home/john/
-
Now the remote
/home/john/
is mounted in/tmp/httpfs/
, head there to browse the remote files. -
Unmount the filesystem:
$ fusermount -u /tmp/httpfs/
-
Install dependencies:
fuse libfuse-dev libcurl4-openssl-dev cmake
-
Make sure the current user is in the
fuse
group (this preliminary step is mandatory to use any FUSE filesystem):# adduser john fuse
Then log out and back in or start a new shell with:
$ newgrp fuse
to inform the system about the changes.
FUSE - http://fuse.sourceforge.net
Andrea Cardaci - http://cyrus-and.github.com
Emilio Pinna - http://disse.cting.org