nginx开启websocket
摘要:http { map $http_upgrade $connection_upgrade { default upgrade; '' close; } upstream websocket { server 192.168.100.10:8010; } server { listen 8020; l
阅读全文
nginx 配置https 并解决重定向后https协议变成了http的问题(转载)
摘要:配置如下: server {listen 80;server_name localhost; return 301 https://localhost$request_uri; charset UTF-8; location / { root html; # 这个是指定一个项目所在目录 index
阅读全文
在centos6.0上通过nginx远程执行shell
摘要:nginx本身不支持直接调用shell脚本,我们可以通过安装fastcgi程序,让nginx把调用shell的http请求交给fastcgi程序去处理,然后nginx 再将结果返回给用户方式间接调用shell,这里我们推荐安装fcgiwrap这个通用的 fastcgi 进程管理器来帮助nginx 处
阅读全文