所需模块:
server.modules = (
"mod_fastcgi",
"mod_access",
"mod_alias",
"mod_accesslog",
"mod_compress",
"mod_rewrite",
"mod_redirect",
"mod_evhost",
)
范例1:
$HTTP["host"] == “www.youling.biz” {
server.name = “youling.biz”
server.document-root = “/home/youling/webroot”
server.errorlog = “/home/youling/webroot/error.log”
accesslog.filename = “/home/youling/webroot/access.log”
}
这是在开启evhost模块后,在同一服务器实现多域名对应各自的目录,范例已经很清楚了,这里也就不再解释。
范例2:
$HTTP["host"] =~ “^youling\.biz$……阅读全文
Filed under: 电脑/IT技术, 网文转贴 on 二月 9th, 2010 | No Comments »
// 13)
{
f = f - 2;
document.getElementById('entry_content').style.fontSize = f + "px";
document.getElementById('entry_content').style.lineHeight = "160%";
if (f==13)
{
document.getElementById('fsmaller').className = "fsizeDisabled";
}
document.getElementById('flarger').className = "fsizeOK";
}
}
function flarger(){
var f = new Number(document.getElementById('entry_content').style.fontSize.substr(0,2));
if (f
Debian VPS 安装安装(Lighttpd+MySQL+Zend+vsftpd+PHPMyAdmin)Web环境
2009年04月24日 下午 | 作者:VP……阅读全文
Filed under: 电脑/IT技术, 网文转贴 on 二月 9th, 2010 | No Comments »
I just signed up a VPS plan from Linode. It is called Linode 360, which provides 360M memory, 10G storage, 200G transfer per month, and more importantly, an affordable price. Please remember, if you are in Australia, choose the data center at Fremont CA because it can give a decent ping value around 192 ms, which is better than most hosting companies in America. I plan to move my previous blog to this VPS server, but some necessary environments need to be built up first. This article is mainly about how to setup Lighttpd, MySQL, PHP, and Per……阅读全文
Filed under: 电脑/IT技术, 网文转贴 on 二月 7th, 2010 | No Comments »
搭建网站或者博客,需要一个合适的 Web 服务器。除了能够在购买的虚拟空间上进行操作外,我们也还可以在自己的电脑上搞定,因为可以用来方便快捷地测试网站或者博客主题,无论是 Wordpress、Joomla,还是 eShop 等等。
但是,我们知道在 Windows 下进行 Apache + PHP + MySQL 环境配置是一件困难繁琐的事,对大侠来说是这样,遑论涉网不深的菜鸟了。事实上,这个貌似令人生畏的过程完全可以实现化繁为简:傻瓜式一键即可轻松搞定!本文总结几种常见的方法如下:
(1)Xampp。德国人研发的一款优秀的免费软件编译版。目前共有 4 个版本。Xammpp Lite 是一个特别的精简版。你只需下载并解压 ……阅读全文
Filed under: 电脑/IT技术, 网文转贴 on 二月 5th, 2010 | No Comments »
(转贴:来自张磊的blog)
Linode是一家美国的VPS主机提供商。VPS = Virtual Private Server,意为虚拟专用服务器,原理是将物理意义上的一台服务器,划分为多台虚拟服务器。每一台虚拟服务器都有独立的内存、CPU、硬盘,可以看作是一个逻辑意义上的独立服务器。
VPS的优点在于可以按需购买,不必花费独立服务器的高昂费用;相比于Dreamhost的Shared Hosting,VPS有可以保证的资源(CPU、内存等),不会有over selling。
我的blog以及其他几个网站,就放在Linode主机上。我购买了540 plan,每月$29.95, 如今使用的是720Plan,每个月$39.95。是从540Plan升级而来,升级过程极其顺利。使用……阅读全文
Filed under: 电脑/IT技术 on 二月 3rd, 2010 | 1 Comment »