所需模块:
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 »
因为个人原因,LNMP经过几次跳票终于发布了,此次发布的是在Debian或者Ubuntu下的 Nginx、PHP、MySQL、phpMyAdmin、Zend一键安装包,可以在VPS、独立主机上轻松的安装LNMP生产环境。
CentOS LNMP一键安装包,请到:http://blog.licess.cn/lnmp/
LNMP V0.3 for Debian/Ubuntu软件版本说明(2009年11月17日更新添加虚拟主机面板程序):
Nginx:0.7.63
PHP:5.2.10
MySQL:5.0.51a
Zend Optimizer :3.3.9
eaccelerator:0.9.5.3
使用说明:(请尽量选用32位,D64位问题已经解决,可以正常使用)
如果系统预安装Apahce或你已经安装Apache,请先运行 killall apache2 ,再执行 apt-get remove a……阅读全文
Filed under: 电脑/IT技术, 网文转贴 on 二月 5th, 2010 | No Comments »
Posted by: 等待一生 in Web Server
之前介绍过Centos(Linode)上安装pptpd VPN,如今换了Ubuntu 9.10,之前的方法不是很好用了。幸好在网站找到了同样是Linode Ubuntu 9.10的用户所写的VPN介绍,转来之前已经测试过,完全可以。
首先,你要确保自己的vps已经按照Getting Started With Linode这篇文章做好了初步的准备工作。对安装VPN而言,需要注意的就是设置好更新源。编辑你的/etc/apt/sources.list文件,去掉"##universe repositories"之后所有行的注释,让文件变成和下面的一样。当然,这一步需要用sudo或者在root下来完成,后面所有的命令都是如此。
## main &……阅读全文
Filed under: 电脑/IT技术, 网文转贴 on 二月 5th, 2010 | 1 Comment »