摘要: 原因一:多个站点同时使用了同一个域名。 阅读全文
posted @ 2012-12-27 01:17 洒洒 阅读(385) 评论(0) 推荐(0)
摘要: 在做nginx的伪静态的时候发现了一个问题:如果我这是成伪静态了,http://dede.com/index.php?t=3 可以访问我的网站,http://dede.com/3​.html这个也可以访问,那百度等搜索引擎不就认为我这是镜像网站了吗? 部分搜索引擎引入了Link的一个新属性Canonical。使用方法:为网页指定权威链接(authoritative|canonical URL),以解决副本内容(duplicate content)问题。 复制内容或复制网页是指相同或十分相近的内容却有多个不同的URL,如打印页、含sessionid的URL等。现在可在副本网页的头部(hea... 阅读全文
posted @ 2012-12-25 12:32 洒洒 阅读(491) 评论(0) 推荐(0)
摘要: 如果系统内已安装IIS并使用了80端口(Http默认端口),再安装Apache,只要另选一个端口并不与其他应用冲突即可运行。例如可以将Apache监听的端口改为81或其他任何一个未被使用的端口。 Apache修改监听端口的方法为: 打开 httpd.conf, 修改 Listen 80 为 Listen 81。 Apache可以同时监听一个以上的端口实现多个Http服务,只要添一行 如 Listen 82 即可。 同样IIS也可以修改默认的端口以避开冲突,修改方法类似: 打开 Administrative Tools -> Internet Services Manager, ... 阅读全文
posted @ 2012-12-22 21:49 洒洒 阅读(423) 评论(0) 推荐(0)
摘要: 要将http://dede.com/index.php?t=3用伪静态规则改写成http://dede.com/t3.html,即可在nginx的conf/nginx.conf里面添加即可。在location / {}里添加,如: location / { root D:/phpweb/wwwroot; index index.php index.html index.htm; rewrite ^(.*)/t(\d+)\.html$ $1/index.php?t=3 last; } 仔细观察rewrite ^(.*)/t(\d+)\.html$ $1/index.php?t=3 last... 阅读全文
posted @ 2012-12-16 02:40 洒洒 阅读(12399) 评论(1) 推荐(0)
摘要: 上篇讲了nginx安装与配置,这篇就说下nginx与php组合安装和配置了。 php安装: 1.下载PHPWindows 5.4.9 binaries and source,解压到D:\phpweb\bin\php549目录下。 2.讲以下配置的#注释去掉,即: location ~ \.php$ { root D:/phpweb/wwwroot; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME D:/phpweb/wwwroot$fastcgi_script_nam... 阅读全文
posted @ 2012-12-16 01:56 洒洒 阅读(385) 评论(0) 推荐(0)
摘要: nginx的安装与配置方法:1.下载: 进入网址http://nginx.org/en/download.html,因为我现在是windows7环境,所以就下载nginx/Windows-1.2.6版本了。2.解压到d:盘下,然后cmd-cd到nginx加压目录下,直接nginx,出现停留光标即启动完成,如果需要停止,在进程中杀死该进程或者:(1)停止:nginx -s stop(2)停止并退出:nginx -s quit;但是当修改了配置文件,不必重启,只需要重新加载即可:nginx -s reload;3.打开nginx的conf目录下的配置文件nginx.conf, server { . 阅读全文
posted @ 2012-12-15 23:56 洒洒 阅读(191) 评论(0) 推荐(0)
摘要: 1 <input type="text" name="textfield" value="{$data.litpic}" id="textfield" class="txt" / >2 <input type="button" class="btn" value="浏览">3 <input type="file" name="litpic" value="& 阅读全文
posted @ 2012-12-13 17:28 洒洒 阅读(366) 评论(0) 推荐(0)
摘要: 一、ckeditor: 1.在需要添加编辑器的页面引出ckeditor.js文件:<script type="text/javascript" src="ckeditor/ckeditor.js"></script>; 2.替换<textarea>:<textarea name="body" class="ckeditor" id="addBody"></textarea>,即在里面添加:class="ckeditor&quo 阅读全文
posted @ 2012-12-13 14:43 洒洒 阅读(390) 评论(0) 推荐(0)
摘要: 1 <form action="__URL__/lists" method="POST"> 2 <input type="hidden" name="flag" value="search"> 3 标题:<input type="text" name="title" value="" class="queryInput"> 4 文章分类:<select name=" 阅读全文
posted @ 2012-12-12 10:49 洒洒 阅读(335) 评论(0) 推荐(0)
摘要: 一、插值像素的概念 插值,是一种为数码相机在计算像素时可以增加有效像素(实际像素)的成像方法。这种方法是将数码相机中的感光器件所形成的实际像素,通过相机中内置的软件,根据实际感光影像的像素,按照一定的运算方法进行计算,产生出新的像素点,并将其插入到原来像素附近的空隙处,从而实现增加了像素总量和增大了像素密度的目的。其实,不但是数码摄像会用到插值,数码变焦的基本原理也是采用插值算法的,它是一种由电子线路实时实现图像空间变换的效果。 从中我们可以知道,通过插值可以使到数码相机的像素在摄像中得到大幅提升,例如原先130万像素的数码相机,经插值功能处理可达200万像素(如在每两个像素点之间通过... 阅读全文
posted @ 2012-12-08 00:19 洒洒 阅读(715) 评论(0) 推荐(0)