
fromnet | ftp | ftpserv | httpserv | ip | netlog | ping | pingdiff | tcpdump | udpdump | udpsend | web | wget | Команда: httpserv sfk httpserv [-h[elp]] [-port=nport] [-rw]
The SFK Instant HTTP Server for easy file transfer.
default behaviour since sfk 1.9.8:
* the current folder AND SUB FOLDERS are made accessible.
use option -nosub to disable.
* just ONE CLIENT (browser etc.) can connect at a time.
only for trusted environments!
sfk httpserv is intended only for personal file transfer
between two machines that the user has control of, within
a trusted LAN environment. it should not be used to offer
files in the internet. if security is important then do not
use sfk httpserv but a full scale web server like Apache.
options
-nosub do not list folder names, allow no access
to files in sub folders.
-rw allow write access with upload of files.
-nolist do not provide a content listing, but change
any access to "/" into "index.html".
includes -nosub to disable sub folder access.
-deep only after -nolist: allow access to files
in sub folders, for html references.
-port=n use other port than default, e.g. -port=81.
-port2=n alternative port, used if first port fails.
use -port2=0 to disable alternative port.
-raw send no http reply header, just raw content.
-headers show incoming request headers.
-startdir x set default subdir to redirect to if a client
connects for the first time, requesting '/'.
about filename character encodings
only filenames with characters of the system codepage
are supported. for details type: sfk listcodes sys
names with chars beyond that cannot be accessed.
see also
sfk ftpserv -h the SFK Instant FTP server.
sfk wget a web file download command.
web reference
http://stahlworks.com/sfk-httpserv
examples: display a simple web page
sfk webserv -nolist
no file listings, load index.html if present.
access to files in sub folders is blocked.
sfk webserv -nolist -deep
same as above, but allow access to sub folder files.
examples: easy file down- and upload
sfk webserv
make current folder, and all sub folders, accessible
for reading and downloading.
sfk webserv -rw
same as above, but also allow upload of files.
sfk webserv -nosub
do not show sub folders, do not allow access to files
in sub folders. (sfk 1.9.7 default behaviour) |
![]() |