Categories

Tags

nginx+php负载均衡集群环境中的session共享方案梳理

https://www.cnblogs.com/kevingrace/p/6031356.html

nginx区分手机与电脑浏览器并进入相应站点

https://www.lvtao.net/config/644.html

Nginx负载均衡

cd /nginx-1.10.3./configure --with-http_stub_status_modulemake手上没有那么多主机,这里使用虚拟机来模拟配置4台linux虚拟机,两台用于负载均衡,两台用于web服务hostname ip 用途lb01 192.168.1.227 ...

Nginx自动缓存文件的问题

修改了css文件,多次刷新浏览器,浏览器查看源代码发现css文件内容还是没有改变。 更改nginx.conf配置文件,将sendfile参数设置为off(它默认是on)重新加载配置 service nginx reload https://segmentfault.com/q/1010000003055006/a-1020000003064578 http:// ...

nginx.conf server节点一般设置

server { listen 80; #server_name 39.108.108.155; server_name www.hutu.cn; #charset koi8-r; #access_log logs/host.access.log main; location / { root /website/www/hut ...

nginx出现413 Request Entity Too Large

上传大图片的时候出现的问题 1.修改php.iniphp默认的文件上传是2M把upload_max_filesize和post_max_size修改为20M,然后重启。2.修改nginx.confnginx默认文件上传是1M在http{}段中加入 client_max_body_size 20m; # 20m为允许最大上传的大小。 [其他]ueditor ...

nginx启用ssl模块以支持https

http://www.cnblogs.com/piscesLoveCc/p/6120875.html

nginx设置成服务并开机自动启动

在/etc/init.d下创建文件nginx vim /etc/init.d/nginx 其内容参考官方文档需要注意的配置:nginx=”/usr/local/nginx/sbin/nginx” #修改成nginx执行程序的路径。NGINX_CONF_FILE=”/usr/local/nginx/conf/nginx.conf” #修改成nginx.conf文件的路径。 保存后设置文 ...

编译安装Nginx

安装make: yum -y install gcc automake autoconf libtool make 安装g++: yum -y install gcc gcc-c++ PCRE库:Nginx需要PCRE(Perl Compatible Regular Expression),因为Nginx的Rewrite模块和Http核心模块都会使用到PCRE正则表达式语法。其下载地址为http:// ...