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. vue3.0的生命周期函数

    stetup(){}在 生命周期函数 系列中的优先级 〇setup(){ //优先级最高 处于created生命周期之前的函数,是无法访问data,methods中的数据是无法访问到的,setup中的 ...

  2. CentOS7 使用Mariadb 安装 hive

    前提:已成功安装hadoop ──────────1. MariaDB安装 ──────────第一步 参照以下内容安装MariaDBhttps://www.linuxprobe.com/chapte ...

  3. maven2创建的archetypeArtifactId类型

    原文:https://www.cnblogs.com/xiziyin/archive/2009/11/22/1608239.html 添加翻译:(我总觉得看汉字比看英文要快得多) 看maven-def ...

  4. 对深度学习中全连接层、卷积层、感受野、1×1卷积、池化层、softmax层、全局平均池化的一些理解

    1.全连接层 在卷积神经网络中,在多个卷积层和池化层后,连接着1个或1个以上的全连接层,全连接层把卷积层和池化层提取出来的所有局部特征重新通过权值矩阵组装成一个完整的图,因为用到了所有的局部特征,所以 ...

  5. dotNetCore创建Windows服务程序并安装服务

    一.创建控制台程序 二.在项目中添加新建项,选择Windows服务类型. 此时会出现一个错误提示,这是因为尚未添加windows服务控制引用造成的. 三.添加Nuget包,System.Service ...

  6. springboot + mybatisplus出现was not registered for synchronization because synchronization is not active

    原因一:缺少事务注解,底层mybatisplus的接口方法有事务 原因二:该服务器被限制访问要连接的数据库 原因三:乐观锁失效 乐观锁由@version注解标注,有以下使用要求 支持的数据类型只有:i ...

  7. CC协议的诞生背景

    CC协议的诞生背景 在当今世界绝大部分国家的法律法规中,作品的版权一般都保留于创造者或拥有人手中,在没有特殊声明的情况下,任何人想要获取或使用该作品,都要事先取得版权所有者的授权,才可以进行合法的获取 ...

  8. Https交互原理

    Http超文本传输协议 基于tcp和Ip实现的一种可靠的传输协议,可靠的保证了客户端和服务器之间的传输不会丢失,但是却没办法保证传输数据的安全性. Https是Http的升级版本,用于解决Http数据 ...

  9. maven插件汇总

    编译Java源码,一般只需设置编译的jdk版本 <plugin> <groupId>org.apache.maven.plugins</groupId> <a ...

  10. windows下使用route添加路由

    1,首先在"运行"窗口输入cmd(按WIN+R打开运行窗口),然后回车进入命令行. 2,在命令行下输入route命令,会有对应的提示信息. ROUTE [-f] [-p] [-4| ...