Apache防盗链:
在需要进行防盗链处理的目录,添加编辑 .htaccess 文件,文件内容为下 ... ...
<VirtualHost *:80> DirectoryIndex index.php ServerName lastme.com RewriteEngine on RewriteCond %{HTTP_HOST} ^lastme.com [nc] RewriteRule ^(.*)$ http://www.lastme.com.com/$1 [r=301,nc] </VirtualHost>
apache安装获取前端代理真实ip模块 ......
apache2.2.24-mod_security2.7.3-apache安装与配置
安装文档: http://download.lastme.com/apache/mod_security/install.txt
Apache安装中文目录文件名支持模块
[root@localhost ~]# wget http://www.lastme.com/static/apache/mod/mod_encoding-src.tar.bz2 ......
启动Apache或者编译PHP的时候出现
error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory