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. windows安装WinDump

    1.下载软件,放在C盘: WinDump.exehttps://www.winpcap.org/windump/install/default.htmWinPcap_4_1_3.exe(windows ...

  2. UIPath踩坑记一 对 COM 组件的调用返回了错误 HRESULT E_FAIL。UiPath.UiNodeClass.InjectAndRunJS

    [ERROR] [UiPath.Studio] [1] 错误: System.Exception: 对 COM 组件的调用返回了错误 HRESULT E_FAIL. ---> System.Ex ...

  3. swiper常见问题、动态加载数据问题

    swiper加载静态文件是没有问题的 swiper加载动态文件需要在请求后再加载这个函数 参考链接:  https://blog.csdn.net/webzrh/article/details/781 ...

  4. DVWA-CSRF(跨站请求伪造)

    csrf(Cross-site request forgery)跨站请求伪造:攻击者诱导用户访问第三方网站,在第三方网站中携带恶意代码,向被攻击者发送请求 原理可以这样来说 用户在访问了一个后台管理网 ...

  5. 利用SpringBoot实现数据库的增删改查(具体实现)

    前言 本次主要是想利用SpringBoot的框架实现一下数据库的增删改查,所以只有一个较为简单的表作为案例 具体实现 1.在配置文件中配置一下相关内容 2.在pom.xml文件中导入相关坐标 3.编写 ...

  6. 红黑树(map与unorder_map)B B+树

    红黑树(map) 这个里面有插入的几种方式:红黑树性质的理解 先说性质,1 每个节点要么红要么黑,2 一个节点为红色,左右两个孩子都是黑, 3 根节点是黑, 4 每个叶子(nil)节点都是黑色, 5 ...

  7. Nacos的微服务与本地测试的问题

    前提条件: 这里是微服务上的yml的配置: uri: base-svc-authcenter: 192.168.1.121:28002 base-svc-file: 192.168.1.121:280 ...

  8. openfoam并行通信探索(一)

    前言 最近在忙,快一两周没更新了,今天说下如何实现openfoam内的并行通信 为什么要并行通信 说到并行通信大家不要害怕啊,只是不同核之间数据传递,比如说咱们仿真开16个核,3号计算单元对4号计算单 ...

  9. 【LeetCode动态规划#02】图解不同路径I + II(首次涉及二维dp数组,)

    不同路径 力扣题目链接(opens new window) 一个机器人位于一个 m x n 网格的左上角 (起始点在下图中标记为 "Start" ). 机器人每次只能向下或者向右移 ...

  10. 探究for循环中的var与let的区别

    首先饮用一篇大佬写的博客:for循环中let与var的区别,块级作用域如何产生与迭代中变量i如何记忆上一步的猜想 这篇博客对我有所启发,但是有点抽象. 再借用<JavaScript高级程序设计& ...