(樵夫)

Wiki Blog Manage* New* EditMe* AboutMe


>>>My new BLOG Site




MSN_LOGO1.jpg

常用链接
Google新闻 LinuxForum LinuxAid chinauinx net130 sourceforge IBM dw 王垠的个人主页 smth ccidnet PlanetMirror 竹笋炒肉 More At Del.icio.us...

本站资源

常用下载 文档中心 趣味收藏 HIKZ CS战队 manServer LinuxDocs大全 Linux一句话技巧

SETI@HOME States

SETI@home是一项旨在利用连入因特网的成千上万台计算机的闲置计算能力“搜寻地外文明(SETI)”的巨大工程。参加者可以用下载并运行屏幕保护程序的方式来让自己的计算机检测射电讯号。参与此项目, 我的状态

March 18, 2005

Redirect Failing URLs To Other Webserver

Description:
A typical FAQ about URL rewriting is how to redirect failing requests on webserver A to webserver B. Usually this is done via ErrorDocument CGI-scripts in Perl, but there is also a mod_rewrite solution. But notice that this is less performant than using a ErrorDocument CGI-script!
Solution:
The first solution has the best performance but less flexibility and is less error safe:

RewriteEngine on
RewriteCond /your/docroot/%{REQUEST_FILENAME} !-f
RewriteRule ^(.+) http://webserverB.dom/$1

The problem here is that this will only work for pages inside the DocumentRoot. While you can add more Conditions (for instance to also handle homedirs, etc.) there is better variant:

RewriteEngine on
RewriteCond %{REQUEST_URI} !-U
RewriteRule ^(.+) http://webserverB.dom/$1

This uses the URL look-ahead feature of mod_rewrite. The result is that this will work for all types of URLs and is a safe way. But it does a performance impact on the webserver, because for every request there is one more internal subrequest. So, if your webserver runs on a powerful CPU, use this one. If it is a slow machine, use the first approach or better a ErrorDocument CGI-script.

Posted by ch1v4n at 01:54 PM | Comments (0) | TrackBack (0)

March 14, 2005

LinkSys Vlan & Trunk Configuration

linksys vlan.GIF

Posted by ch1v4n at 02:00 PM | Comments (0) | TrackBack (0)

March 13, 2005

新买了WLAN AP

TP_LINK, 230块的那张
支持802.11b
信号很不错,架在三楼,一楼、楼下汽车里信号都不错,穿透力很强。

Posted by ch1v4n at 10:31 PM | Comments (0) | TrackBack (0)

March 11, 2005

VLAN配置笔记

各Vlan地址,DHCP池均在会聚层上做
接入层仅需将访问端口分配给不同的VLAN
会聚和接入分别配置Trunk和VLAN信息
在会聚层上做三层交换

暂时将10.0.11.2作为路由器使用

Posted by ch1v4n at 02:52 PM | Comments (0) | TrackBack (0)