全球主机交流论坛

标题: Nginx+LiteSpeed的思路 [打印本页]

作者: debian.    时间: 2010-10-31 19:44
标题: Nginx+LiteSpeed的思路
其实 很简单 - -大猫真小气不放教程

其实吧LSWS的端口改为其他比如81等 反正不是80就要OK
在安装Nginx 反向代理读取LSWS:81然后OK了


图文教程问大猫
作者: 暗の世界    时间: 2010-10-31 19:46
你们慢慢折腾吧~~~
作者: mlmm    时间: 2010-10-31 19:47
提示: 作者被禁止或删除 内容自动屏蔽
作者: debian.    时间: 2010-10-31 19:47
标题: 回复 2# 的帖子
GDTV的Windows VPS挂了- -你可别举报我撒- -我才3个DS 2刀- -  我Cancel了7个- -
作者: sunday    时间: 2010-10-31 21:01
猫猫的好像不是这样

求猫猫证实
作者: 小夜    时间: 2010-10-31 21:03
大便哥,你的大号还没放出来?
作者: cnx    时间: 2010-10-31 21:05
原帖由 debian. 于 2010-10-31 19:47 发表
GDTV的Windows VPS挂了- -你可别举报我撒- -我才3个DS 2刀- -  我Cancel了7个- -


牛X。
作者: Cat    时间: 2010-10-31 21:12
反向代理的话,这样是不是全部东西都由Nginx传递给LiteSpeed处理啊?
我只是将php交给LiteSpeed处理...

我博客已经用起来了~
先观察一段时间
作者: mlmm    时间: 2010-10-31 21:23
提示: 作者被禁止或删除 内容自动屏蔽
作者: renothing    时间: 2010-10-31 21:35
不懂装懂。。。。全部转向后端那还要nginx搞毛。。。。
作者: renothing    时间: 2010-10-31 21:44
  1. server {
  2. listen 80;
  3.         server_name www.xxxxxx.com _.xxxxxx.com;
  4.         index index.php index.html index.htm;
  5.         root  /xxxxxxx;
  6.         open_file_cache max=2000 inactive=2h;
  7.         open_file_cache_valid 3h;
  8.         open_file_cache_errors off;
  9. location / {
  10.                 #php backend source
  11.                 location ~ .*\.(php|php5)?$ {
  12.                         #反向通用配置
  13.                         proxy_redirect off;
  14.                        #proxy_set_header Host $host;
  15.                         proxy_set_header Host $proxy_host;
  16.                         proxy_set_header X-Real-IP $remote_addr;
  17.                         proxy_set_header REMOTE-HOST $remote_addr;
  18.                         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  19.                         proxy_set_header X_FORWARDED_HOST $host;
  20.                         proxy_pass http://$host:808;
  21.                         #include proxy upstream
  22.                         #include proxyupstream.conf;
  23.                 }
  24.                 location ~ .*\.(js|css|gif|jpg|jpeg|png|bmp|swf|flv)$ {
  25.                 #缓存容器
  26.                 proxy_cache cache_one;
  27.                 expires 30d;
  28.                 }
  29.         }
  30. }
复制代码

作者: xtmp    时间: 2010-10-31 21:47
我不禁又想起来那个帖子了,买仨2$vps做cdn
作者: renothing    时间: 2010-10-31 21:47
补充一句,如果需要进行日志分析,得两个web server 的日志都要用到。
如果单纯是想cache,用squid比nginx更好。
作者: winsock    时间: 2010-10-31 21:50
这样搞和fcgi也没多大区别了。。。。。。。。。。。
作者: Cat    时间: 2010-10-31 21:55
熊猫已经给出关键配置了...注意一下细节,
给个高手出教程吧...
作者: 小夜    时间: 2010-10-31 21:56
这还要毛细节了。看这个,如果还不会弄。那就别折腾了。
作者: press    时间: 2010-10-31 22:10
来点教程吧!
作者: 组长    时间: 2010-11-1 06:40
已经出了




欢迎光临 全球主机交流论坛 (https://lilynana.eu.org/) Powered by Discuz! X3.4