- Notifications
You must be signed in to change notification settings - Fork1
Document to install webfs simple light weight web server if you like this Document You can Hire me @ fiverr/salemfituri
SalimF/webfs-doc
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
document to install webfs simple light weight web server
Debian/Ubuntu
apt install webfsRedhat/CentOS/Fedora
yum install webfsservice webfs rstartservice webfs stopThis is how runwebfsd directly from the terminal replace/var/www with your folder path e.g. <<-current folder path .
webfsd -p 80 -R /var/www -c 5000 -e 2592000 -u www-data -g www-data -l /etc/webfs.logRun in the current foldet and bid ip address
webfsd -p 80 -R . -i 10.10.1.1you can edit webfs setting "e.g chang root folder"
nano /etc/webfsd.conf
Important setting to change in webfsd.conf
so it will listing to port 80(default wweb browsers port)
web_port="80"
web_root="/var/www"
web_index=index.html web_host= web_ip= web_port= web_virtual=false web_timeout= web_conn=5000 web_dircache= web_accesslog= web_syslog=false web_user=www-data web_group=www-data
mime type setting on the file/etc/mime.types
Example herehttps://www.apt-browse.org/browse/debian/jessie/main/all/mime-support/3.58/file/etc/mime.types
/usr/bin/webfsd
-p port Listen on Port <>port<> for incoming connections e.g -p 80-R dir document root to <>dir<> and chroot to <>dir<> e.g -R /var/www-c n seet n number of arreler connection e.g 5000-j prevent directory listing if the index-file isn't found-e secExpire documents after <>sec<> seconds. Webfsd will senda Expires: header set to last-modified time plus <>sec<> seconds e.g -e 2592000 (expiration = month )-y n Set the number of threads to spawn (if compiled with thread support). -m file Read mime types from <>file<> . Default is /etc/mime.types -f file Use <>file<> as index file for directories-n hostnameSet the host name which the server should use e.g -n example.com-i ipBind to IP-address <>ip<> e.g -i 104.16.3.71-l logLog all requests to the logfile <>log<> e.g -l /etc/webfs.log-u userSet uid to <>user<> e.g -u www-data-g groupSet gid to <>group<> e.g -g www-datawebfs can immpidatly give any folder files public access if you run it inside any folderwebfsd -p 80
About
Document to install webfs simple light weight web server if you like this Document You can Hire me @ fiverr/salemfituri
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.