全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 963|回复: 4
打印 上一主题 下一主题

[疑问] nginx 反向代理这样设置没有错把IIS在88端口不生效

[复制链接]
跳转到指定楼层
1#
发表于 2010-1-16 00:15:55 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
  1. #user  nobody;
  2. worker_processes  1;

  3. #error_log  logs/error.log;
  4. #error_log  logs/error.log  notice;
  5. #error_log  logs/error.log  info;

  6. #pid        logs/nginx.pid;


  7. events {
  8.     worker_connections  1024;
  9. }


  10. http {
  11.     include       mime.types;
  12.     default_type  application/octet-stream;

  13.     #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
  14.     #                  '$status $body_bytes_sent "$http_referer" '
  15.     #                  '"$http_user_agent" "$http_x_forwarded_for"';

  16.     #access_log  logs/access.log  main;

  17.     sendfile        on;
  18.     #tcp_nopush     on;

  19.     #keepalive_timeout  0;
  20.     keepalive_timeout  65;

  21.     #gzip  on;

  22.     server {
  23.         listen       80;
  24.         server_name  localhost;

  25.         #charset koi8-r;

  26.         #access_log  logs/host.access.log  main;

  27.         location / {
  28.             root   html;
  29.             index  index.html index.htm;
  30.         }

  31.         #error_page  404              /404.html;

  32.         # redirect server error pages to the static page /50x.html
  33.         #
  34.         error_page   500 502 503 504  /50x.html;
  35.         location = /50x.html {
  36.             root   html;
  37.         }

  38.         # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  39.         #
  40.         location ~ \.php$ {
  41.             proxy_pass   http://127.0.0.1:88;
  42.         }

  43.         # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  44.         #
  45.         #location ~ \.php$ {
  46.         #    root           html;
  47.         #    fastcgi_pass   127.0.0.1:9000;
  48.         #    fastcgi_index  index.php;
  49.         #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
  50.         #    include        fastcgi_params;
  51.         #}

  52.         # deny access to .htaccess files, if Apache's document root
  53.         # concurs with nginx's one
  54.         #
  55.         #location ~ /\.ht {
  56.         #    deny  all;
  57.         #}
  58.     }


  59.     # another virtual host using mix of IP-, name-, and port-based configuration
  60.     #
  61.     #server {
  62.     #    listen       8000;
  63.     #    listen       somename:8080;
  64.     #    server_name  somename  alias  another.alias;

  65.     #    location / {
  66.     #        root   html;
  67.     #        index  index.html index.htm;
  68.     #    }
  69.     #}


  70.     # HTTPS server
  71.     #
  72.     #server {
  73.     #    listen       443;
  74.     #    server_name  localhost;

  75.     #    ssl                  on;
  76.     #    ssl_certificate      cert.pem;
  77.     #    ssl_certificate_key  cert.key;

  78.     #    ssl_session_timeout  5m;

  79.     #    ssl_protocols  SSLv2 SSLv3 TLSv1;
  80.     #    ssl_ciphers  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
  81.     #    ssl_prefer_server_ciphers   on;

  82.     #    location / {
  83.     #        root   html;
  84.     #        index  index.html index.htm;
  85.     #    }
  86.     #}

  87. }
复制代码
2#
发表于 2010-1-16 09:20:47 | 只看该作者
搞来搞去你用squid吧 简单快捷,高效率。
3#
发表于 2010-1-16 11:09:14 | 只看该作者

回复 2# 的帖子

我觉得也是,nginx+IIS 好像很少人这么干。
4#
发表于 2010-1-16 11:10:57 | 只看该作者
nginx+IIS效率不高啊。
5#
发表于 2010-1-16 19:44:27 | 只看该作者
看着 好像没什么 错误啊 运行后 什么效果?!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-11-15 06:39 , Processed in 0.059587 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表