如何给程序打补丁

打补丁

http://drupal.org/patch/apply
Provided that the patch was made relative to the root directory of the concerned project, navigate to the that directory (using cd). For a patch on Drupal, that will be the Drupal directory; for a contrib module or theme, that is the root directory of the project. Once there, issue the command:
patch -p0 < path/file.patch

drupal网站动态内容和静态内容分离

我现在直接使用nginx就可以做到

nginx的conf中写好了,静态文件包括boost cache直接给nginx处理。php相关的给后台的php-cgi。

lightttpd的例子,使用两个域名!

下面是挺早的一个例子了。有参考价值。现在大部分情况不需要这么搞了吧。

http://www.lullabot.com/articles/using-lighttpd-static-file-...
Simpler approach
I use a much simpler approach.
(1) Set up a fast http server on a different port or different server (I wrote my own).
(2) Redirect requests to static files (like files in the /files folder or images) via mod_rewrite to this server.
But anyway, think it's a very useful idea to have different servers here!