HTTPFS is a fuse filesystem capable of mounting a typical Apache directory index as a local read-only filesystem.
Python dependencies (works on both Python 2 and 3):
- requests
- fusepy
- beautifulsoup4
- six
usage: httpfs.py [-h] [--foreground] [--debug] [--nothreads] [--no_ssl_verify]
[--allow_other] [-o OPTIONS]
http_resource mountpoint
positional arguments:
http_resource Target web directory index
mountpoint Target directory
optional arguments:
-h, --help show this help message and exit
--foreground Do not fork into background (default: False)
--debug Enable debug logging (default: False)
--nothreads Disable fuse threads (default: False)
--no_ssl_verify Disable SSL Verification (default: False)
--allow_other Allow users other than the one running the command to
access the directory. (default: False)
-o OPTIONS, --options OPTIONS
Mount-style variant of the above options
(e.g. -o no_ssl_verify,allow_other (default: )
You can register this filesystem (so it can be used in fstab or with the mount command) in the following way:
# Clone the repository
git clone https://github.com/Kurocon/HTTPfs.git
# Change into directory
cd HTTPfs
# Make a symbolic link to /usr/sbin/
sudo ln -s `pwd`/httpfs.py /usr/sbin/mount.httpfs
You should now be able to use the filesystem in the following ways:
# In /etc/fstab
http://some.server/ /mnt/mountpoint httpfs.py allow_others 0 0
# In a normal mount command
sudo mount.httpfs http://some.server/ /mnt/mountpoint -o allow_others
# Or using the normal mount command
sudo mount -t httpfs http://some.server/ /mnt/mountpoint -o allow_others