nginx如何添加子域名对应的网站?

March 1st, 2010

假设有一个www.blah.com了, 想把子域名网站xxx.blah.com指向另外一个完全不同的服务器目录.
其实很简单,完全跟添加一个新的域名差不多,只需要把server_name设为该子域名,其余完全类似.

Nginx + Django Setup

February 28th, 2010

Follow the below articles, it should be able to work:

http://wiki.nginx.org/NginxDjangoFastCGI

http://code.djangoproject.com/wiki/InitdScriptForLinux

http://stackoverflow.com/questions/605173/how-to-nginx-virtual-servers-fcgi-for-django

Notice fast CGI config in nginx:
fastcgi_pass_header Authorization;
fastcgi_intercept_errors off;

更多 »

皮皮书屋

February 27th, 2010

http://www.ppurl.com/

不错的电子书网站,很有特色,注册用户的Captcha是一段程序,问你输出是什么。

#include

更多 »

How to remote logon to linux X Desktop

February 27th, 2010

There are several options.

1. VNC

http://markus.revti.com/2009/08/installing-vnc-remote-desktop-on-ubuntu-linux-vps/

2. FreeNx

https://help.ubuntu.com/community/FreeNX

更多 »

How to tell your linux OS is 32 bit or 64 bit?

February 26th, 2010

uname is the command you need. It can also tell kernel version. If you used to compile VMWare tools, it needs to find the kernel headers that matches the kernel version.

The sampe output of uname is below:
Linux MachineName 2.6.22-14-generic #1 SMP Tue Feb 12 02:46:46 UTC 2008 x86_64 GNU/Linux

poor landing page quality?

February 24th, 2010

If google adwords complains that your landing page quality is poor, your google ads may not be shown.

But then how to debug and fix this? Unfortunately, google doesn’t provide a tool to help validate the fix.
They just provides some guidelines.

更多 »

Howtos: 管理员如何登陆Debian Linux的GUI界面

February 23rd, 2010

方法有两种,一是图形界面方式设置,一是命令行设置:
A. 图形界面方式:

GNOME桌面下:打开“系统主菜单“,选择”系统>系统管理>登录窗口”,在弹出的窗口中点“安全”选项页,选择“允许本地管理员登录“,点确定即可。完成。

更多 »

HowTos: 在Debian 5 (Lenny) 上编译firefox

February 22nd, 2010

刚安装了Debian 5,试一下编译Firefox. 有如下要点:(注意命令在root下执行). 基本上参看官方指南, https://developer.mozilla.org/en/Linux_Build_Prerequisites, 但也有些不同.

1. 安装编译工具

更多 »

How to create symbolic link on linux

February 21st, 2010

Q. How do I create a soft link (symbolic link) under UNIX or Linux operating system?

A. To make links between files you need to use ln command. A symbolic link (also known as a soft link or symlink) consists of a special type of file that serves as a reference to another file or directory. Unix/Linux like operating systems often uses symbolic links.

The usage of ln is: ln -s source target

更多 »

VMWare虚拟磁盘映像

February 20th, 2010

常玩虚拟机的人都知道安装一个虚拟机也是很费时间的事情. 网上也有一些热心人提供了安装好的VMWare磁盘映象可用下载.

1. Windows98, Me, Windows XP, Windows 2003的磁盘映像:

更多 »

本文由IT Farmer的博客创作,欢迎转载并保留对本博的链接。