项目作者: peteretelej

项目描述 :
dserve - Directory Serve: Serve a static directory via HTTP / static website (with basic-auth authentication support)
高级语言: Go
项目地址: git://github.com/peteretelej/dserve.git
创建时间: 2016-03-26T16:28:20Z
项目社区:https://github.com/peteretelej/dserve

开源协议:MIT License

下载


dserve - Directory Serve

Build Status
GitHub release
Go Report Card
license
FOSSA Status

dserve serve a directory over HTTP

dserve Installation

Option 1 (Fast & Easy)

Download Windows, Linux or Mac 32bit or 64bit executable application from the releases:

Option 2

Install via go get. (Requires Golang)

  1. go get github.com/peteretelej/dserve

Usage

Enter the directory you’d like to serve and run

  1. dserve

That’s it. This launches a webserver on port 9011 serving the directory. Visit http://localhost:9011 to access the site.

Speficy a directory in another location

  1. dserve -dir /var/www/html

Serve on a different port

  1. dserve -port 8080

Enable HTTP basic authentication

  1. dserve -basicauth user1:pass123

Restrict server to localhost

  1. dserve -local

You can chain the arguments

  1. dserve -dir ~/mysite -port 80 -basicauth user:pass12345

License

FOSSA Status