08 2010 档案
摘要:location = /path/ { return 404; }这样只能禁止访问 http://www.a.com/path/不能禁止访问 http://www.a.com/path/test.php这样就搞定了location ^~ /test { deny all; }可能test要换成path.
阅读全文
摘要:http://bbs.chinaunix.net/viewthread.php?tid=1063326*这样安装之后,phpinfo()显示了 This program makes use of the Zend Scripting Language Engine: Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies 而不是:...
阅读全文
摘要:转:http://zyw090111.javaeye.com/blog/731651第一步:下载安装的文件 1. MySQL:下载地址mysql-5.1.49-win32.msi; 2. Apache: 下载地址httpd-2.2.16-win32-x86-openssl-0.9.8o.msi; 3. PHP5.3.3 下载地址php-5.3.3-Win32-VC6-x86注意:一定要下载p...
阅读全文
摘要:最近在PHP官网For Windows的版本四个版本,VC9 x86 Non Thread Safe、VC9 x86 Thread Safe、VC6 x86 Non Thread Safe、VC6 x86 Thread Safe,PHP 官网提供下载的地方左边有个英文 choose 。一、如何选择 PHP5.3 的 VC9 版本和 VC6 版本VC6 版本是使用 Visual Studio 6 编...
阅读全文
摘要:转自:http://hi.baidu.com/xingyuanju/blog/item/779a2a23b7ebb749935807f1.htmlhttp://hi.baidu.com/dianhui/blog/item/2f5e6ecb26f5e619bf09e62a.htmlNginx 简介Nginx ("engine x") 是一个高性能的 HTTP 和 反向代理 服务器,也是一个 IMAP...
阅读全文
摘要:http://www.abc.com/product/test.php?sid=9000变成 http://www.abc.com/product/test_9000.shtml表达式是这样写的RewriteEngine On RewriteRule ^(.*)/product/test_(\d+)\.shtml$ $1/product/test.php?sid=$2然后一直以http://www...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--http://skyfen.javaeye.com/category/94175?show_full=true1.给子域名加www标记RewriteCond%{HTTP_HOST}^([a-z.]+)...
阅读全文
摘要:VariablesThe core module supports built-in variables, whose names correspond with the names of variables in Apache.First of all, there are the variables, which represent the lines of the title of the ...
阅读全文
摘要:为何要使用301重定向在网站建设中需要网页重定向的情况很多:如网页目录结构变动,网页重命名、网页的扩展名改变、网站域名改变等。如果不做重定向,用户的收藏和搜索引擎数据库中的旧地址只能让访客得到一个404错误信息页面,访问流量白白丧失。不仅如此,之前该页面的一切积累(比如PR值)就都白费了。301重定向不仅能使页面实现自动跳转,对于搜索引擎来说,也可能可以传递PR值。nginx重定向规则详细介绍ht...
阅读全文
摘要:在linux的top命令里的cpu信息是什么意思呢? Cpu(s): 62.1% us, 15.9% sy,0.1% ni, 19.4% id,2.0% wa,0.1% hi,0.4% si Mem: 8247956k total,8232004k used,15952k free,205240k buffers Swap: 8191992k total,48k used,8191944k fre...
阅读全文
摘要:robots.txt文件作如下设置:User-agent: *Disallow: /*?*这三个需要注意的是: User-agent: *Disallow: Allow: 这三个和后面链接的时候中间要有空格。这个很多时候容易忽略。忽略了对你网站没有影响 。但是可能会收录一些你不愿意搜索引擎收录的页面。
阅读全文
浙公网安备 33010602011771号