【今日观点】 .htaccess 301 强制https
RewriteEngine onRewriteBase /RewriteCond %{SERVER_PORT} !^443$RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R...
RewriteEngine onRewriteBase /RewriteCond %{SERVER_PORT} !^443$RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R...
转自:http://hi.baidu.com/benmaoer/blog/item/54c6e924cb7bc10a4d088d80.html 根据inode 来修改或删除linux 下乱码的文件 1. 创建测试文件: touch 1?.t...
location / { index index.php index.html; if (!-e $request_filename) { rewrite ^/(.+)$ /index.php?p=$1 last; } }
cd /usr/local/directadmin/custombuild rm -f /usr/local/directadmin/custombuild/mysql/* ./build update ./build mysql &nbs...
一直以来,使用DirectAdmin都有一个问题,例如我的域名是youhuiba.net,通过mail()发信,无法发送到admin@youhuiba.net里面,一直是一个问题,也没有好的解决办法。 现在,可以这样解决。 第一步: 联系管...
1.cd /usr/local/src/ 2.wget http://xcache.lighttpd.net/pub/Releases/3.0.3/xcache-3.0.3.tar.gz 3.tar –zxvf ...
转自赵容部落 首先,安装必要组件。 yum install gcc –y #安装gcc组件 wget http://d.nicwind.com/files/...
#!/bin/sh cd /usr/local/directadmin/data/users for r in `ls */reseller.conf | cut -d/ -f1`; do { ...
遇到这个 Starting httpd: httpd: Syntax error on line 17 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/...
执行hdparm -i /dev/sda
强制修改mysql的root密码,在忘记mysql密码时有用 sh /www/wdlinux/tools/mysql_root_chg.sh ftp配置文件检查,在FTP不能连接或登录时有用 sh /www/wdlinux/tools/pu...