摘要: 看了很多nginx的配置,好像都忽略了ip直接访问web的问题,不利于SEO优化,所以我们希望可以避免直接用IP访问网站,而是域名访问,具体怎么做呢,看下面。官方文档中提供的方法:If you do not want to process requests with undefined “Host” header lines, you may define a default server that just drops the requests:说白了就是只要是ip访问的直接重置444错误。但是这样好像又不太友好,如果能直接给跳转到该web server的网址就好了。 阅读全文
posted @ 2011-02-21 16:18 fooboo 阅读(27142) 评论(2) 推荐(0) 编辑
摘要: 1 增加组 groupadd ftpgroup2 修改/etc/vsftpd/vsftpd.conf 将底下三行 #chroot_list_enable=YES # (default follows) #chroot_list_file=/etc/vsftpd.chroot_list 改为 chroot_list_enable=YES # (default follows) chroot_list_file=/etc/vsftpd/chroot_list 3 增加用户 useradd -g ftpgroup -d /dir/to -M ftpuser4 设置用户口令 passw 阅读全文
posted @ 2011-02-21 13:35 fooboo 阅读(10906) 评论(0) 推荐(0) 编辑