`
liangminzeng
  • 浏览: 57427 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

SSI

    博客分类:
  • SSI
SSI 
阅读更多
The SSI Format

All directives to the server have the following format. Each command takes different arguments, most only accept one tag at a time.
<!--#command tag1="value1" tag2="value2" -->
Commands and associated tags

include
The include directive inserts the text of a document into the parsed document. Any included file is subject to the usual access control. This command accepts two tags:

virtual is used when the included file is not in the same directory as the web page calling it.
file is used when the included file is located in the same directory (or subdirectory) as the web page calling it.
config
The config directive controls various aspects of the file parsing.

errmsg controls what message is sent back to the client if an error includes while parsing the document. When an error occurs, it is logged in the server's error log.
timefmt gives the server a new format to use when providing date and time. This is a string compatible with the strftime library call under most versions of UNIX.
sizefmt determines the formatting to be used when displaying the size of a file. Valid choices are bytes, for a formatted byte count (formatted as 1,234,567), or abbrev for an abbreviated version displaying the number of kilobytes or megabytes the file occupies.
echo prints the value of one of the include variables (defined below). The only valid tag to this command is var, whose value is the name of the variable you wish to echo.
fsize prints the size of the specified file. Valid tags are the same as with the include command. The resulting format of this command is subject to the sizefmt parameter to the config command.
flastmod prints the last modification date of the specified file, subject to the formatting preference given by the timefmt parameter to config. Valid tags are the same as with the include command.
exec executes a given shell command or CGI script. It must be activated to be used. Please note that it is NOT activated on Webserve.
cmd will execute the given string using /bin/sh. All of the variables defined below are defined, and can be used in the command.
cgi will execute the given virtual path to a CGI script and include its output. The server does not perform error checking to make sure your script didn't output horrible things like a GIF, so be careful. It will, however, interpret any URL Location: header and translate it into an HTML anchor.

Return to Top of Page
SSI Environment Variables

DOCUMENT_NAME: The current filename.
DOCUMENT_URI: The virtual path to this document (such as /docs/tutorials/foo.shtml).
DATE_LOCAL: The current date, local time zone.
DATE_GMT: Same as DATE_LOCAL but in Greenwich mean time.
LAST_MODIFIED: The last modification date of the current document.
HTTP_USER_AGENT: The visitor's browser software
HTTP_REFERER: The page from which the visitor came
SERVER_SOFTWARE: The version of the web server
SERVER_NAME: Your server name
REMOTE_ADDR: The remote IP address of the the visitor
Return to Top of Page

The timefmt tag Values

The following is the list of possible values for the timefmt tag. Any time and dates are printed subject to the currently configured timefmt.

Value Description
%a abbreviated weekday name
%A full weekday name
%b abbreviated month name
%B full month name
%C default date and time format
%d day of month - 01 to 31
%D date as %m/%d/%y
%e day of month - 1 to 31
%H hour - 00 to 23
%I hour - 01 to 12
%j day of year - 001 to 366
%m month of year - 01 to 12
%M minute - 00 to 59
%p string containing AM or PM
%r time as %I:%M:%S %p
%R time as %H:%M
%S second - 00 to 59
%T time as %H:%M:%S
%y year within century - 00 to 99
%Y year as CCYY (4 digits)
%Z timezone name
Return to Top of Page
Code Examples

1. The following examples all use the syntax: <!--#echo var="Variable" -->

Variable Code Result
SERVER_NAME <!--#echo var="SERVER_NAME" --> webmaster.indiana.edu
HTTP_USER_AGENT <!--#echo var="HTTP_USER_AGENT" --> Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
DATE_LOCAL <!--#echo var="DATE_LOCAL" --> Monday, 12-Sep-2005 14:16:37 EST


2. Displaying Current Date and Time in different formats:

Code Result
<!--#config timefmt="%A, %d %B %Y"--> Current Date: <!--#echo var="DATE_LOCAL" --> Current Date: Monday, 12 September 2005
<!--#config timefmt="%a, %d %b %Y, %H:%M:%S"--> Current Time: <!--#echo var="DATE_LOCAL" --> Current Time: Mon, 12 Sep 2005, 14:16:37
<!--#config timefmt="%D, %r"--> Current Time: <!--#echo var="DATE_LOCAL" --> Current Time: 09/12/05, 02:16:37 PM


3. Displaying Last Modified Date for your web site:

Code Result
<!--#config timefmt="%A, %d %B %Y"--> Last Modified: <!--#echo var="LAST_MODIFIED"--> Last Modified: Thursday, 07 October 2004

---------------------------------------------------------------------
虚拟主机:
The term Virtual Host refers to the practice of running more than one web site (such as www.company1.com and www.company2.com) on a single machine. Virtual hosts can be "IP-based", meaning that you have a different IP address for every web site, or "name-based", meaning that you have multiple names running on each IP address. The fact that they are running on the same physical server is not apparent to the end user.

关于httpd.conf
1.NameVirtualHost Directive
The NameVirtualHost directive is a required directive if you want to configure name-based virtual hosts.也就是说,这个指令是用于构建一个拥有名字的虚拟主机,例如在httpd.conf上添加
分享到:
评论

相关推荐

    SSI-ABZ.rar_FPGA ABZ_FPGA SSI_SSI 转 ABZ信号FPAG程序_abz_ssi fpga

    标题中的"SSI-ABZ.rar_FPGA ABZ_FPGA SSI_SSI 转 ABZ信号FPAG程序_abz_ssi fpga" 提到了几个关键术语:SSI、ABZ、FPGA以及转换程序。这些术语涉及到电子工程领域,特别是数字系统设计中的一个重要部分——现场可编程...

    SSI_read.rar_SSI verilog_SSI 11bit read_SSI_read_ssi verilog_v

    SSI(Synchronous Serial Interface,同步串行接口)是一种在数字系统中常见的通信协议,用于传输数据。在本项目中,我们关注的是如何使用Verilog硬件描述语言来实现一个11位编码器的SSI读取功能。Verilog是一种广泛...

    ssi整合 jar包

    SSI(Server Side Include)是一种在Web服务器端处理页面动态包含的技术。它允许网页开发者在HTML文件中嵌入服务器端的脚本或指令,以便在页面加载时动态地插入数据、执行计算或者引用其他资源。SSI主要应用于静态...

    ssi例子ssi例子ssi例子ssi例子

    SSI(Server-Side Includes)是一种简单的服务器端脚本语言,常用于动态网页生成。它允许在HTML文件中嵌入服务器端的命令,从而实现页面的部分动态更新,而无需整个页面进行刷新。标题和描述中反复提到"ssi例子",...

    SSI完整配置实例

    SSI,全称是Shared State Infrastructure,它是一种分布式计算技术,主要应用于Web服务器环境中,用于在多个服务器之间共享和管理状态信息。在Web应用中,SSI常用来实现动态网页的生成,通过在静态HTML页面中嵌入可...

    SSI.rar_Cortex-M0 SSI_SSI_SSI驱动_TI cortex-M4

    【标题】"SSI.rar_Cortex-M0 SSI_SSI_SSI驱动_TI cortex-M4" 提供的是关于在基于TI Cortex-M4处理器上的SSI(Synchronous Serial Interface)驱动程序,用于控制8位数码管显示。 【描述】"TI CORTEX M3 SSI驱动8...

    fpga与ssi通信

    "FPGA与SSI通信" FPGA(Field-Programmable Gate Array,场-programmable gate array)是一种可编程的数字集成电路,能够通过配置实现不同的逻辑功能。在嵌入式系统应用领域中,FPGA广泛应用于各种嵌入式系统的设计...

    SSI_Library.rar_SSI_SSI Verilog_logic_ssi verilog_verilog ssi

    SSI,全称是Small-Scale Integration,是一种早期的集成电路(IC)集成度分类方式,它主要包含基础的逻辑门电路,如与非门、或非门、非门等。在现代数字系统设计中,SSI仍然作为理解数字逻辑设计的基础。Verilog是一...

    SSI必须jar包

    标题中的"SSI必须jar包"指的是在Web开发中使用Server Side Includes(SSI)技术所需的Java库文件。这些jar包是支持SSI框架运行的基础组件,它们提供了各种功能,使得开发者能够轻松地在服务器端动态地包含和处理网页...

    SSI (Serial synchronus Interface) 协议

    ### SSI (Serial Synchronous Interface) 协议详解 #### 概述 SSI(Serial Synchronous Interface)协议是一种广泛应用于工业传感器与控制器之间的串行通信接口标准。它主要用于位置传感器,如绝对位置编码器的数据...

    ssi.zip_ssi spi

    SSI (Serial Slave Interface) 和 SPI (Serial Peripheral Interface) 是微控制器中常见的串行通信协议,广泛用于连接外部设备,如传感器、存储器和显示模块。TI DK-LM3S9B96 是德州仪器(Texas Instruments)推出的...

    SSI.rar_SSI_SSI稳定图_random subspace_稳定图_随机子空间

    在IT领域,特别是数据分析和机器学习中,"SSI"(可能是"Stability Selection"的缩写)是一个重要的概念,它与特征选择和模型稳定性密切相关。本压缩包文件"SSI.rar"包含了实现SSI算法的程序以及可能的数据处理工具,...

    8bitled.rar_SSI_SSI bus 总线

    在标签“ssi”和“ssi_bus_总线”中,"ssi"是接口的缩写,而"ssi_bus_总线"强调了这是关于通信总线的一部分。在微控制器系统中,总线是连接不同组件并允许它们交换信息的通道。SSI总线允许微控制器与外部设备之间...

    SSI整合项目 SSI系统绞手架 SSI框架整合

    在这个"SSI整合项目 SSI系统绞手架 SSI框架整合"中,我们将探讨如何利用SSI来搭建一个高效、可扩展的系统框架。 首先,让我们了解一下SSI的基本用法。SSI指令通常以`&lt;!--#`开头,`--&gt;`结尾,例如`&lt;!--#include ...

    同步串行接口(SSI)光电编码器高速数据采集系统的板级开发

    SSI208P模块将同步串行接口数据转换成并行接口数据,内部集成了SSI同步时钟发生器、脉冲计数器、数据串并转换、接口控制逻辑、输出控制以及收发驱动器(TTL-RS422电平转换)等功能单元,用户无须了解SSI数据格式,该...

    SSI框架做的一个增删改查以及分页的小项目

    **SSI框架介绍** SSI,全称为Server Side Includes,是一种简单的服务器端脚本语言,主要用于在HTML文档中嵌入动态内容。这种技术最初被用于Web服务器上,以方便地实现页面部分更新,而无需整个页面刷新。尽管现代...

    STM32系列,LWIP,WEB,CGI,SSI

    在本文中,我们将深入探讨如何利用STM32集成轻型网络库(LWIP)来实现Web服务器功能,包括CGI(通用网关接口)和SSI(服务器端包含)。 LWIP,全称Lightweight IP,是一个开源的、轻量级的TCP/IP协议栈,适用于资源...

    西门子ET200S 1SSI绝对编码器模块.pdf

    西门子ET200S 1SSI绝对编码器模块是西门子公司推出的用于工业自动化领域的产品,主要用于将绝对位置编码器与分布式I/O系统相连。在详细介绍ET200S 1SSI绝对编码器模块的功能和使用方法之前,先对文档中提及的若干...

    SSI_DataDriven2_SSI_模态自动识别_数据驱动随机子空间识别算法_随机子空间

    在标题"SSI_DataDriven2_SSI_模态自动识别_数据驱动随机子空间识别算法_随机子空间"中,关键词"SSI"指的是结构健康监测(Structural Health Monitoring),而"模态自动识别"和"数据驱动随机子空间识别算法"则明确...

    采用SSI协议实现的绝对值编码器

    随着科技的发展,绝对值编码器的通信技术不断优化,SSI(Synchronous Serial Interface)协议作为一种高效、可靠的输出方式,得到了广泛应用。 SSI协议是一种同步串行通信协议,它解决了并行输出方式在高位数数据...

Global site tag (gtag.js) - Google Analytics