Web-based file and folder sharing with Apache-HTTP server
来源:互联网 发布:全国工商企业数据爬虫 编辑:程序博客网 时间:2024/04/29 03:48
Abstract
The post introduces how to make file sharing available using apache http server.
1. Introduction
File sharing is the practice of distributing or providing access to digital media, such as computer programs, multimedia(audio, images, and video), documents or others.
File sharing may be achieved in a number of ways, such as FTP, NFS, SAMBA, etc. But web-based file sharing is a more convenient and user-friendly way to do so.
Apache is a web server that can do some very complicated things in conjunction with lots of other software but it can also be used on almost any computer to share files with other computers.
2. Steps
Following is the steps of file sharing with apache http server version 2.4.x
1) install apache http server.
# sudo yum install httpd (for centos/fedora)
# sudo pacman -S apache (for archlinux)
2) modify apache http server's httpd.conf file and enable alias_module:
# enable alias_module
LoadModule alias_module modules/mod_alias.so
LoadModule autoindex_module modules/mod_autoindex.so
3) add alias folder to share (within httpd.conf):
for example:
# share folder
Alias /tmp C:/temp
<Directory C:/temp>
IndexOptions FancyIndexing FoldersFirst Charset=UTF-8 NameWidth=*
Options MultiViews Indexes
AllowOverride None
#Deny from 192.168.1.130
#Deny from 10.0.0.0/8
Order allow,deny
Allow from all
#== Controls who can get stuff from this server
Require all granted
</Directory>
# or as this:
<IfModule alias_module>
Alias /BaiduDownload "E:/BaiduYunDownload/"
<Directory "E:/BaiduYunDownload/">
Options Indexes MultiViews
IndexOptions FoldersFirst Charset=UTF-8
AllowOverride None
Require all granted
</Directory>
</IfModule>
# or in file "conf\extra\httpd-autoindex.conf"
# you do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "${SRVROOT}/icons/"
Options Indexes MultiViews
AllowOverride None
Require all granted
</Directory>
Restart the httpd service , and you can access shared files and folder from your web browser.
That is all!
- Web-based file and folder sharing with Apache-HTTP server
- iSCSI SAN Server with Clustering and File Sharing
- “Sharing Position with Friends” in MGE based Web GIS Application
- Easy File Sharing Web Server 7.2
- Deploying Django with Apache and mod_wsgi Based on Red Hat Enterprise Linux Server
- Easy File Sharing Web Server 7.2 漏洞分析及利用
- Setting file and folder permissions
- using http upload file to web server
- Ubuntu 14.04 LTS: File Sharing With Samba
- Implement p2p file sharing system with RMI
- Compiling and Installing the Apache Web Server
- Web Server - Apache Nginx and Lighttpd (1)
- Web Server - Apache Nginx and Lighttpd (2)
- ISAPI Extensions: Creating a DLL to Enable HTTP-based File Uploads with IIS
- x++ Find Folder and File Type
- C++ Browser Folder and File Win32
- powershell List Folder and File hierarchy
- Thread-safe caching object with file and HTTP implementations
- Yii2与Composer中的autoload
- 一起来学UML(1)——UML建模工具Umbrello初体验
- ISO/OSI网络体系结构和TCP/IP协议模型
- 支付宝支付之Android篇
- user story : 用户故事
- Web-based file and folder sharing with Apache-HTTP server
- 生成交叉表的SQL基本语句
- JavaSE学习(8) 排序、查找
- JAVA学习路线
- mysql索引的类型和优缺点
- PHP之微信企业号推送信息
- package 队列iiiiii;
- 用Enterprise Architect从源码自动生成类图
- [李景山php]每天TP5-20170112|thinkphp5-Model.php-5