Apache Reference Manual (7)_PHP教程
程序员文章站
2022-06-16 11:11:11
...
Syntax:
Context: server config, virtual host
Status: core
Compatibility: Location is only available in Apache 1.1 and later.
The
Note that URLs do not have to line up with the filesystem at all, it should be emphasized that
For all origin (non-proxy) requests, the URL to be matched is of the form /path/, and you should not include any http://servername prefix. For proxy requests, the URL to be matched is of the form scheme://servername/path, and you must include the prefix.
The URL may use wildcards In a wild-card string, `?' matches any single character, and `*' matches any sequences of characters.
Apache 1.2 and above: Extended regular expressions can also be used, with the addition of the ~ character. For example:
would match URLs that contained the substring "/extra/data" or "/special/data". In Apache 1.3 and above, a new directive
The Location functionality is especially useful when combined with the SetHandler directive. For example, to enable status requests, but allow them only from browsers at foo.com, you might use:
SetHandler server-status
order deny,allow
deny from all
推荐阅读
-
CentOS7+apache+php7+mysql5.7配置教程详解
-
CentOS 7中 Apache Web 服务器安装配置教程
-
win7 64位系统 配置php最新版开发环境(php+Apache+mysql)
-
centos下yum搭建安装linux+apache+mysql+php环境教程
-
windows7下php开发环境搭建图文教程
-
iis7 配置php5.4连接sql2008图文教程
-
Win2008 R2 IIS7 PHP 5.4 环境搭建图文教程
-
centos7利用yum安装lnmp的教程(linux+nginx+php7.1+mysql5.7)
-
PHP7内核之Reference详解
-
centos7 + php7 lamp全套最新版本配置及mongodb和redis教程详解