Appweb配置

       
具体参考源码配置demo:/appweb-6.1.1/test/appweb.conf
      Appweb操作通常由Appweb配置文件(appweb.conf)控制。 这个配置文件是在Appweb启动时读取的,它管理着Appweb配置的各个方面,包括监听什么端口和地址,加载哪些模块,在哪里查找网页以及如何记录请求。
      Appweb也可以通过编程来配置。有关详细信息,请阅读
Appweb AP
I( 
Appweb API
)。
      在appweb启动时读取一次。 对配置文件的更改将需要重新启动Appweb。
另一个配置文件可以通过使用-
-config Appweb命令选项指定。

1. Sample configuration file(简单的示例配置文件)
配置指令是每行一个,对指令名称不区分大小写。以“#”字符开头的行是注释,并被忽略


2.Configuration Blocks(配置块)
一个appweb.conf文件由多种配置选项构成:
● 
Global Directives          (全局指令)
● Route Blocks                (路由块)
● Virtual Host Blocks       (虚拟主机块)
● Include Directives         (Include 指令)
● Conditional Directives  (条件指令)
Ⅰ. Global Directives(全局指令)
      没有被任何选项块包含的选项就是全局选项,定义一些 appweb 的全局属性。
Ⅱ. Route Blocks(路由块)
      Route块定义了应用于特定URL的一组指令。该块是由Route指令创建的
例如
        
       它表示以 "/myapp/" 开头的 URL 请求转给 esp 处理。
Ⅲ. Virtual Host Blocks(虚拟主机块)
      虚拟主机块定义了应用于虚拟子服务器的一组指令。虚拟服务器可能与虚拟服务器名称或IP地址相关联。虚拟主机使您能够分割web服务器以服务于不同域或IP地址的唯一内容。
      下面是一个基于ip的虚拟主机的例子:
       
      下面是一个基于名称的虚拟主机的示例:
       
     
 更多详细信息,查看
Virtual Hosting
Ⅳ. 
Include Directives(Include 指令)
      include指令允许将其他文件包含在配置文件中。include指令可以是带有通配符的单个文件名或文件名(做用户名密码储存数据库的时候会用到)
       
Ⅴ. Conditional Directives  (条件指令) 
      配置文件通过
指令支持条件处理。if指令测试一个符号值,如果是true,它可以解析嵌套的指令。如果值为false,则会忽略嵌套的指令。
       
3.Appweb支持的配置指令列表(具体可以参考appweb-6.1.1/test/appweb.conf文件配置)
Name
Purpose
CGI program to handle specific content.
Add an input filter to the processing pipeline.
Add a handler for processing given file extensions.
Add a supported language and filename suffix to use for this language.
Add a per-language content directory.
Add an output filter to the processing pipeline.
Add a MIME type specification.
Map URLs to directories.
Define which servers can access content.
Automatically login as the designated user.
Define the quality of protection for Digest Authentication.
Define the name of the user group file for authentication.
Define the authentication method: "config" or "system".
Define the realm of users to be permitted access to this set of documents.
Define the type of authentication to use: Basic or Digest.
Define the file of user names.
Configure client and server side caching.
Define a name for the server to use when creating redirections.
Escape shell special characters in CGI environment variables.
Define a prefix string for URI query and form variables when passing to CGI programs.
Define the directory for a "chroot jail" in which Appweb will execute.
Define a conditional test for a route.
Define cross-origin sharing exceptions for the route.
Set the default language to use for a route.
Define a defensive response for attack monitoring.
Define which servers cannot access content.
Define the default index file to service for directory requests.
Directory containing web content.
Define an error document to serve.
Define the location and format of the error log.
Define an ESP application.
Define the timeout period to wait for requests to complete before exiting or restarting.
Manage the response headers.
Define the O/S account group used by Appweb.
Define the directory containing configuration files.
Ignore UTF-8 encoding errors in WebSockets
Define the options for directory listings.
Define the order of processing directory index options.
Maximum request and connection inactivity duration.
Set the maximum buffer size for pipeline stages.
Set the maximum size of the Appweb cache for responses and sessions.
Set the maximum size of a single item in the Appweb cache.
Set the maximum transfer chunk encoding size.
Set the limit of simultaneous clients.
Set the limit of simultaneous client connections.
Set the maximum number of open files or sockets on a Unix system.
Define the re-use count for a connection.
Limit the total memory usage of Appweb. This is a hard limit.
Maximum number of CGI processes to spawn.
Set the limit of simultaneous requests for a single IP address.
Set the maximum size of the incoming request body.
Set the maximum size of the incoming request form data.
Set the maximum total request header size.
Set the maximum number of request header lines.
Set the maximum response body size.
Set the limit of simultaneous client sessions.
Set the maximum file upload size.
Set the maximum size of a request URI.
Limit the maximum size of a Web Sockets Message Frame.
Limit the maximum size of a Web Sockets Message.
Limit the maximum size of a Web Sockets Message Packet.
Limit the maximum size of a Web Sockets Message.
Define the IP address and port on which to listen.
Load an Appweb module.
Specify a list of directories to search for modules.

Log

Control the tracing of HTTP events.

Map

Control the mapping of requests by extension.
Define the action to take when memory is depleted.
Control the acceptable HTTP method verbs.
Monitor a resource for attacks and trigger a defensive response.
Control directory listing options.
Specify the order in which the allow and deny directives apply.
Define a route step to test request param values.
Define a route prefix to trim from the URI.
Preserve WebSocket frames.
Redirect requests to a new target.
Define a HTTP request header test for a route.
Maximum time to parse a request or response HTTP headers.
Maximum request duration.
Define which authenticated users will be permitted access to content.
Open a previously defined route to add or modify directives.
Reset the input and output pipeline for a block.
Defines an authentication role with associated abilities.
Define a block of directives to apply to a URL route.
Set the route name.
Map a URL to a directory for CGI processing.
Set the connector stage for a block.
Set the handler to process requests.
Define source code for the handler to use.
Number of worker threads to pre-allocate and preserve.
Control stealth mode.
Define the target action to take for a route to serve a response to the client.
Stack size for each thread.
Define the server names to be served by a host or virtual host.
Control the visibility of the session cookie in the browser.
Maximum session state inactivity duration.
Define the location of the client certificate file.
Define the server certificate.
Define the server's private key.
Set the cipher suite to use for SSL.
Enable SSL processing for a block.
Set the SSL protocols to enable.
Verify the identity of the client certificate.
Verify the identity of the issuer or the client certificate.
Control if request body content is buffered or streamed to the handler.
Define a route target.
Define what request events to trace.
Define the location and format of the request trace log.
Specify the location of the MIME types file.
Unload an Appweb module.
Define an update modification for a route.
Set the directory for uploaded files.
Control if files are auto-deleted after uploading.
Define the O/S user account used by Appweb.
Create a directory block for virtual hosting for an IP address


Appweb配置的更多相关文章

  1. struts2+springmvc+hibernate开发。个人纪录

    对于很多新手来说,都不太清楚应该怎么去放置代码并让他成为一种习惯.个人的总结如下: 一.基础包类的功能 1.dao :提供底层接口 2.daoimpl:实现底层接口类,与底层交互 3.entity:实 ...

  2. Maven最佳实践 划分模块 配置多模块项目 pom modules

    所有用Maven管理的真实的项目都应该是分模块的,每个模块都对应着一个pom.xml.它们之间通过继承和聚合(也称作多模块,multi-module)相互关联.那么,为什么要这么做呢?我们明明在开发一 ...

  3. maven 配置多模块项目 pom modules

    所有用Maven管理的真实的项目都应该是分模块的,每个模块都对应着一个pom.xml.它们之间通过继承和聚合(也称作多模块,multi-module)相互关联.那么,为什么要这么做呢?我们明明在开发一 ...

  4. AppWeb认证绕过漏洞(CVE-2018-8715)

    AppWeb认证绕过漏洞(CVE-2018-8715) 一.漏洞描述 Appweb简介 Appweb是一个嵌入式HTTP Web服务器,主要的设计思路是安全.这是直接集成到客户的应用和设备,便于开发和 ...

  5. Springcloud及Git线上配置详解

    SpringCloud 这个阶段该如何学? 三层架构 + MVC 框架: Spring IOC AOP SpringBoot,新一代的JavaEE开发标准,自动装配 模块化~ all in one,代 ...

  6. 配置android sdk 环境

    1:下载adnroid sdk安装包 官方下载地址无法打开,没有vpn,使用下面这个地址下载,地址:http://www.android-studio.org/

  7. Android Studio配置 AndroidAnnotations——Hi_博客 Android App 开发笔记

    以前用Eclicps 用习惯了现在 想学学 用Android Studio 两天的钻研终于 在我电脑上装了一个Android Studio 并完成了AndroidAnnotations 的配置. An ...

  8. react-router 组件式配置与对象式配置小区别

    1. react-router 对象式配置 和 组件式配置    组件式配置(Redirect) ----对应---- 对象式配置(onEnter钩子) IndexRedirect -----对应-- ...

  9. 总结:Mac前端开发环境的搭建(配置)

    新年新气象,在2016年的第一天,我入手了人生中第一台自己的电脑(大一时好友赠送的电脑在一次无意中烧坏了主板,此后便不断借用别人的或者网站的).macbook air,身上已无分文...接下来半年的房 ...

  10. Android Studio 多个编译环境配置 多渠道打包 APK输出配置

    看完这篇你学到什么: 熟悉gradle的构建配置 熟悉代码构建环境的目录结构,你知道的不仅仅是只有src/main 开发.生成环境等等环境可以任意切换打包 多渠道打包 APK输出文件配置 需求 一般我 ...

随机推荐

  1. ctype.h系列的字符函数

    C有一系列专门处理字符的函数,ctype.h头文件包含了这些函数的原型.这些函数接受一个字符作为参数,如果该字符属于某特殊的类别,就返回一个非零值(真):否则返回0(假).这个头文件在判断特定字符类型 ...

  2. kettle连接mysql报Communications link failure

    添加2个命名参数 1.autoReconnect=true 2.useSSL=false

  3. java相关部分配置

    一.mybatis逆向工程 ① generator.properties jdbc.driverLocation=D:/testDir/Maven/repository_g/mysql/mysql-c ...

  4. 输入一段字符(只含有空格和字母,保证开头不为空格),里面有若干个字符串,求这些字符串的长度和,并输出最长字符串内容,如果有多个输出最先出现的那个字符串。以stop作为最后输入的字符串。

    #include<stdio.h>#include<string.h>main(){    int i,j=0,m,count,max;    char a[100];     ...

  5. Caused by: java.lang.NoClassDefFoundError: net/minidev/asm/FieldFilter 报错的解决

    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'r ...

  6. Asp.Net Core 程序开发技巧汇总

    使用Sqlite数据库 创建项目 Asp.Net Core Web应用程序 Web应用程序 ASP.NET Core 2.2 NuGet管理,添加Sqlite数据库支持 Microsoft.Entit ...

  7. Xamarin.Android 利用作业计划程序实现ImageSwitcher图片自动定时轮播

    在开发android程序时,遇到一个问题,ImageSwitcher只支持手动的切换图片,不支持自动定时的切换.因为xamarin的资料很少,官方也没有相应的教程,所以想到这个方法,利用job程序来实 ...

  8. pytorch CrossEntropyLoss() 默认转换one-hot编码

    import torchpredict = torch.randn((4,3))predict = torch.nn.functional.softmax(predict,dim = 1)target ...

  9. Python从零到壹丨详解图像平滑的两种非线性滤波方法

    摘要:本文将详细讲解两种非线性滤波方法中值滤波和双边滤波. 本文分享自华为云社区<[Python从零到壹] 五十六.图像增强及运算篇之图像平滑(中值滤波.双边滤波)>,作者: eastmo ...

  10. InnoDB 索引深入剖析

    InnoDB页 将数据划分为若干个页(page),以页作为磁盘和内存之间交互的基本单位,InnoDB中页的大小一般为 16KB.也就是在一般情况下,一次最少从磁盘中读取16KB的内容到内存中,一次最少 ...