root@urchin# mysql -u root -p mysql> create database urchin character set utf8; mysql> GRANT ALL ON urchin.* to 'urchin'@'localhost' IDENTIFIED BY 'urchinpassword';
SetEnvIfNoCase 说明: Sets environment variables based on attributes of the request without respect to case 语法: SetEnvIfNoCase attribute regex [!]env-variable[=value] [[!]env-variable[=value]] … 上下文: 服务器配置, 虚拟主机, 目录, .htaccess 覆盖项: FileInfo 状态: Base 模块: mod_setenvif 兼容性: Apache 1.3 and above
The SetEnvIfNoCase is semantically identical to the SetEnvIf directive, and differs only in that the regular expression matching is performed in a case-insensitive manner. For example: SetEnvIfNoCase Host Apache.Org site=apache This will cause the site environment variable to be set to “apache” if the HTTP request header field Host: was included and contained Apache.Org, apache.org, or any other combination. SetEnvIfNoCase 当满足某个条件时,为变量赋值,一般结合其他指令使用。 如:
SetEnvIf Request_URI "/logo(.)+" local_ref=0 Allow from env=local_ref 当local_ref有值时,可以访问。