Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Document to install webfs simple light weight web server if you like this Document You can Hire me @ fiverr/salemfituri

NotificationsYou must be signed in to change notification settings

SalimF/webfs-doc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 

Repository files navigation

document to install webfs simple light weight web server

installation

Debian/Ubuntu

apt install webfs

Redhat/CentOS/Fedora

yum install webfs

to start webfs type

service  webfs rstart

Stop the server

service  webfs stop

Full example

This 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.log

Run in the current foldet and bid ip address

webfsd -p 80 -R . -i  10.10.1.1

the configuration file

you can edit webfs setting "e.g chang root folder"

nano /etc/webfsd.conf

Important setting to change in webfsd.conf

Change the defult port

so it will listing to port 80(default wweb browsers port)

web_port="80"

cnage document root

web_root="/var/www"

rest of settings

   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

change mime type

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

the excutable file pathe is

/usr/bin/webfsd

webfsd CMD

-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-data

make webfs share any folder contents

webfs 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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp