随笔分类 - nginx
摘要:``` server { listen 80; server_name hancfl.com www.hancfl.com; #charset koi8-r; if ( $http_user_agent ~ "(MIDP)|(WAP)|(UP.Browser)|(Smartphone)|(Obigo)|(Mobile)|(AU.Browser)|(wxd.Mms)|(WxdB.Browser)|(
阅读全文
摘要:server { listen 443; server_name server.sentiger.com; ssl on; root /home/wwwroot/Service/beta/public; index index.html index.htm index.php; ssl_...
阅读全文
摘要:1.安装过程网上搜一下全都是,这里省略。 2.由于debug调试需要去判断cookie中XDEBUG_SESSION,然后去调试。由于app接口请求没法去传,而且就算去传递也很麻烦,还要让app去改动,很不现实。 3.去网上搜索了很长时间,都没搜索到,于是自己想办法弄。 4.由于自己的本地是ngin
阅读全文
摘要:chmod +x /etc/init.d/nginx chkconfig --add nginx chkconfg on
阅读全文
摘要:在之前的博客中,写了svn服务在linux下搭建,今天主要来介绍下svn服务器的配置策略 1.安装 http://www.cnblogs.com/shiwenhu/p/4901617.html 2.配置文件 用svnadmin create test这样就创建了一个svn版本仓库,里面有配置文件,主
阅读全文
摘要:CGI CGI全称是“公共网关接口”(Common Gateway Interface),HTTP服务器与你的或其它机器上的程序进行“交谈”的一种工具,其程序须运行在网络服务器上。 CGI可以用任何一种语言编写,只要这种语言具有标准输入、输出和环境变量。如php,perl,tcl等。 FastCGI
阅读全文
摘要:nginx配置https之前,一定要安装了ssl模块,要不然是不可以用的。在nginx启动时会出现这种错误: 出现nginx在编译完成安装之后,重新编译nginx模块 1然后编译make,但是记得别make install,否则会覆盖原来的nginx。因为make install 就是移动二进制文件
阅读全文
摘要:1.nginx.conf#user nobody;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid ...
阅读全文
摘要:nginx配置连接操作memcachenginx配置连接memcache: location / { set $memcached_key "$uri"; #设置memcached变量 memcached_pass 127.0.0...
阅读全文
摘要:nginx的gizp压缩为了使网站节省带宽和加快访问速度,在服务器方面的一个优化的就是使用nginx提供的gzip压缩。一、使用压缩原理:1、当用户使用浏览器访问网站时,就是在发送一个http请求,而浏览器在请求头信息中会通知服务器我支持哪些压缩类型。Accept-Encoding:gzip,def...
阅读全文

浙公网安备 33010602011771号