动网论坛,站长建站首选,国内使用量最多的论坛软件 动网论坛官方技术讨论区 站长工具 申请属于您自己的免费论坛
首页 | 新闻资讯 | 网站运营 | 网络编程 | 数据库 | 服务器 | 网页设计 | 图像媒体 | 网络应用 | 搜索优化 | 资源下载 | 动网主机 | DVBOX
    本站内  互联网 ASP论坛  ASP.Net论坛  PHP论坛
   PHP → 阅读文章

 Apache Reference Manual (10)

作者来源: 
阅读 994 人次 , 2006-4-18 16:42:00 


   Satisfy directive
Syntax: Satisfy 'any' or 'all'
Default: Satisfy all
Context: directory, .htaccess
Status: core
Compatibility: Satisfy is only available in Apache 1.2 and later
Access policy if both allow and require used. The parameter can be either 'all' or 'any'. This directive is only useful if access to a particular area is being restricted by both username/password and client host address. In this case the default behavior ("all") is to require that the client passes the address access restriction and enters a valid username and password. With the "any" option the client will be granted access if they either pass the host restriction or enter a valid username and password. This can be used to password restrict an area, but to let clients from particular addresses in without prompting for a password.

See also require and mod_access.



--------------------------------------------------------------------------------

ScoreBoardFile directive
Syntax: ScoreBoardFile filename
Default: ScoreBoardFile logs/apache_status
Context: server config
Status: core
The ScoreBoardFile directive is required on some architectures to place a file that the server will use to communicate between its children and the parent. The easiest way to find out if your architecture requires a scoreboard file is to run Apache and see if it creates the file named by the directive. If your architecture requires it then you must ensure that this file is not used at the same time by more than one invocation of Apache.

If you have to use a ScoreBoardFile then you may see improved speed by placing it on a RAM disk. But be careful that you heed the same warnings about log file placement and security.

Apache 1.2 and above:

Linux 1.x users might be able to add -DHAVE_SHMGET -DUSE_SHMGET_SCOREBOARD to the EXTRA_CFLAGS in your Configuration. This might work with some 1.x installations, but won't work with all of them. (Prior to 1.3b4, HAVE_SHMGET would have sufficed.)

SVR4 users should consider adding -DHAVE_SHMGET -DUSE_SHMGET_SCOREBOARD to the EXTRA_CFLAGS in your Configuration. This is believed to work, but we were unable to test it in time for 1.2 release. (Prior to 1.3b4, HAVE_SHMGET would have sufficed.)

See Also: Stopping and Restarting Apache



--------------------------------------------------------------------------------

ScriptInterpreterSource directive
Syntax: ScriptInterpreterSource 'registry' or 'script'
Default: ScriptInterpreterSource script
Context: directory, .htaccess
Status: core (Windows only)
This directive is used to control how Apache 1.3.5 and later finds the interpreter used to run CGI scripts. The default technique is to use the interpreter pointed to by the #! line in the script. Setting ScriptInterpreterSource registry will cause the Windows Registry to be searched using the script file extension (e.g., .pl) as a search key.



--------------------------------------------------------------------------------

SendBufferSize directive
Syntax: SendBufferSize bytes
Context: server config
Status: core
The server will set the TCP buffer size to the number of bytes specified. Very useful to increase past standard OS defaults on high speed high latency (i.e., 100ms or so, such as transcontinental fast pipes)



--------------------------------------------------------------------------------

ServerAdmin directive
Syntax: ServerAdmin email-address
Context: server config, virtual host
Status: core
The ServerAdmin sets the e-mail address that the server includes in any error messages it returns to the client.

It may be worth setting up a dedicated address for this, e.g.

ServerAdmin www-admin@foo.bar.com
as users do not always mention that they are talking about the server!


--------------------------------------------------------------------------------

ServerAlias directive
Syntax: ServerAlias host1 host2 ...
Context: virtual host
Status: core
Compatibility: ServerAlias is only available in Apache 1.1 and later.
The ServerAlias directive sets the alternate names for a host, for use with name-based virtual hosts.

See also: Apache Virtual Host documentation


--------------------------------------------------------------------------------

ServerName directive
Syntax: ServerName fully-qualified domain name
Context: server config, virtual host
Status: core
The ServerName directive sets the hostname of the server; this is used when creating redirection URLs. If it is not specified, then the server attempts to deduce it from its own IP address; however this may not work reliably, or may not return the preferred hostname. For example:

ServerName www.example.com
would be used if the canonical (main) name of the actual machine were simple.example.com.
If you are using name-based virtual hosts, the ServerName inside a <VirtualHost> section specifies what hostname must appear in the request's Host: header to match this virtual host.


See Also:
DNS Issues
Apache virtual host documentation
UseCanonicalName
NameVirtualHost
ServerAlias



--------------------------------------------------------------------------------

ServerPath directive
Syntax: ServerPath pathname
Context: virtual host
Status: core
Compatibility: ServerPath is only available in Apache 1.1 and later.
The ServerPath directive sets the legacy URL pathname for a host, for use with name-based virtual hosts.

See also: Apache Virtual Host documentation

---------------------------------------------------   
 本文TagsApache  
 收藏本文  打印本文  论坛讨论  关闭窗口
· 上一篇:Apache Reference Manual (11)
· 下一篇:转载:Apache Server 的 httpd.conf 文件注释
· 浅谈php用户身份认证(一)
· PHP新手上路(九)
· PHP安全配置(4)
· 这是一个记录用户踪迹的片段
· 使用"函数递归"实现基于php和MySQL的动态树型菜单


关于本站 | 联系我们 | 业务合作 | 客户案例 | 诚聘英才 | 广告合作 | 收藏本站
海口动网先锋网络科技有限公司版权所有
Copyright © 2000 - 2006 Cndw.Com
中华人民共和国电信与信息服务业务经营许可证编号 琼 ICP 020077