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. 12、jmeter逻辑控制器-临界区控制器

    临界区:说白了就是不并发了 一个个的像独木桥 使用场景:比如提交一个数据  需要一个一个的提交  一个个的改   在数据库改操作的时候 需要用到 临界区控制器 案例:临界区控制器

  2. linux命令补充

    1.nohup nohup /usr/local/node/bin/node /www/im/chat.js >> /usr/local/node/output.log 2>& ...

  3. springboot中redis使用和工具

    application.properties #Redis相关配置 spring.data.redis.host=localhost #端口 spring.data.redis.port=6379 # ...

  4. Codeforces Round #803 (Div. 2) A-D 刚vp完还没补题

    Codeforces Round #803 (Div. 2) 2022/7/24 上午VP 传送门:https://codeforces.com/contest/1698 A. XOR Mixup 随 ...

  5. Java 题目集 编程

    7-1 多数组排序 (20 分)   3个整数数组进行整体排序,根据输入的三个数组的元素,输出排序后的结果(从大到小) 输入格式: 第1个数组的长度 第1个数组的各个元素 第2个数组的长度 第2个数组 ...

  6. Mybatis-plus常见报错

    1.提示数据库(表)不存在,如图: 原因:mybatis-plus默认查询的表名字为实体类的名字User,并转小写. 解决:添加注解@TableName设置表名

  7. Sleuth 使用

    sleuth是spring cloud中日志链(调用链解决方案),自动添加traceId,spanId. sleuth包也可单独引入,和其它藕合度小.sleuth + zipkin 实现APM管理. ...

  8. gitlab-ce安装

    # vim /etc/yum.repos.d/gitlab-ce.repo [gitlab-ce] name=Gitlab CE Repository baseurl=https://mirrors. ...

  9. SpringBoot解决跨域方案

    SpringBoot解决跨域的几种方式 跨域资源共享(CORS):通过修改Http协议header的方式,实现跨域.说的简单点就是,通过设置HTTP的响应头信息,告知浏览器哪些情况在不符合同源策略的条 ...

  10. 【公式编辑测试】生成函数常用性质及其他(普通生成函数指数生成函数Dirichlet生成函数)

    目录 定义 普通生成函数OGF 指数生成函数 EGF Dirichlet生成函数 Notation OGF OGF property some OGF instances EGF EGF proper ...