linux轻量级web服务,轻量级WebServer-Yorserver1.0

# This is the  Yorserver configuration file.

# server_version: Add response HTTP header server version information.

server_version = "YorServer1.0"

# bind_ip: Allows you to bind yorserver to specific IP addresses.

#

bind_ip="0.0.0.0"

# port: Allows you to bind yorserver's port, http default 80 and Https 443.

port=80

# sys_version: Add response HTTP header python version information.

sys_version = ""

# protocol_version: Add response HTTP header protocol version.

protocol_version = "HTTP/1.0"

# Expires: Add response HTTP header Expires and Max-age version. format:d/h/m(Day/House/Minute).

Expires="7d"

# Multiprocess: configure yorserver Multi process support(on/off).

Multiprocess="off"

# Multithreading: configure yorserver Multi threading support(on/off).

Multithreading="on"

# DocumentRoot: configure web server document root.

DocumentRoot="/usr/local/yorserver/www"

# page404: configure web server deafult 404 page.

page404="/404.html"

# indexpage: configure web server deafult index page.

indexpage="/index.html"

# Logfile: configure web server log file path,disable logs Logfile="".

Logfile="/usr/local/yorserver/logs/access.log"

# errorfile: configure web server error file path.

errorfile="/usr/local/yorserver/logs/error.log"

[gzip]

# gzip: Enable(on) or Disable(off) gzip options.

gzip="on"

# configure compress level(1~9)

compresslevel=1

[ssl]

# ssl: Enable(on) or Disable(off) HTTPS options,port options must configure "443".

ssl="off"

# configure privatekey and certificate pem.

privatekey="/home/webkey/privkey.pem"

certificate="/home/webkey/cacert.pem"

[cgim]

# cgi_moudle: Enable(on) or Disable(off) cgi support.

cgi_moudle="on"

# cgi_path: configure cgi path,multiple cgi path use ',' delimited,cgi_path in bin directory.

cgi_path='/cgi-bin',

# cgi_extensions: configure cgi file extension.

cgi_extensions="('.cgi','.py','.pl','.php')"

# contentTypes: configure file mime support.

[contentTypes]

css="text/css"

doc="application/msword"

gif="image/gif"

gz="application/x-gzip"

html="text/html"

htm="text/html"

esp="text/html"

ics="text/calendar"

jpeg="image/jpeg"

jpg="image/jpeg"

js="text/javascript"

pdf="application/pdf"

png="image/png"

rtf="application/rtf"

txt="text/plain"

zip="application/zip"

cgi="text/html"

py="text/html"

pl="text/html"

php="text/html"

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值