一个竟然存在了四年的博客
DreamHost
Dreamhost上安装Phpwind开启静态目录部署
Oct 1st
首先,国庆快乐!
正题:
其实不只是Dreamhost,一般的Apache主机都开了mod_rewrite的(国内的主机可以忽略)。
开启mod_rewrite的最大的好处就是搜索引擎优化,叫做Search Engine Friendly。
实现这个功能的是一个.htaccess文件,它的位置在站点根目录下。
新建一文本文件,在其中加入如下代码:
RewriteEngine On
RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
然后把静态目录改成-htm-。
然后就点确定了。
PHPWIND6.0对开启静态目录部署的方法说的不是很人性化,直接叫人在conf/httpd.conf中添加以下代码: More >
DreamHost site backup and restore
Jul 30th
Steps for restoring data on your own :
1. cd into the hidden directory named .snapshot (it will not show up in
any directory listing at all, but it’s there)
2. Choose how far back you would like to go ( hourly.0 is one hour ago,
hourly.1 is two hours ago, nightly.0 is one day ago, nightly.1 is two
days ago, weekly.0 it one week ago, weekly.1 is two weeks ago )
3. Copy the restored file to where you want it. You’re done!
update:There are files restore only,another important thing is the database restore,DO NOT miss anything!
It is very easy for restoring your mysql databases whit dreamhost,you can just click the “restore” button which you can find in the “Good Ieda” column,and select a date which you would like to restore to….[emot]smoke[/emot]