guanxf

          我的博客:http://blog.sina.com.cn/17learning

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            71 隨筆 :: 1 文章 :: 41 評論 :: 0 Trackbacks
          nginx 反向代理到 apache
          server {
                  listen       80;
                  server_name  app.haeee.com;
          index index.html index.htm index.php;
             root /alidata/www/movie-app;
               error_page 404 500 502 503 504 http://app.haeee.com; 
          location ~ .*\.(php|php5)?$
          {
          #fastcgi_pass  unix:/tmp/php-cgi.sock;
          fastcgi_pass  127.0.0.1:9000;
          fastcgi_index index.php;
          include fastcgi.conf;
          }
          location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
          {
          expires 30d;
          }
          location ~ .*\.(js|css)?$
          {
          expires 1h;
          }
          #偽靜態規則
          #include /alidata/server/nginx/conf/rewrite/phpwind.conf;
          access_log  /alidata/log/nginx/access/movie-app.log;
          }

          nginx 反向代理到 tomcat
          server {
              listen   80;
              server_name  hulasou.com www.hulasou.com;
          index index.html index.htm index.jsp;
          #location ~ .*\.(jsp)?$
          location /{      
          index index.jsp;
                  proxy_pass http://localhost:8181;
          }
          #偽靜態規則
          include /alidata/server/nginx/conf/rewrite/uuxiaohua.conf;
          access_log  /alidata/log/nginx/access/uuxiaohua.log;
          }
          posted on 2016-01-19 17:46 管先飛 閱讀(410) 評論(0)  編輯  收藏 所屬分類: Java技術
          主站蜘蛛池模板: 克山县| 固镇县| 桐城市| 高平市| 商洛市| 莱州市| 老河口市| 舞钢市| 汕尾市| 汾阳市| 内黄县| 阳新县| 宁远县| 阿坝| 津南区| 宜阳县| 哈尔滨市| 罗平县| 天门市| 盘锦市| 张北县| 夏河县| 屏山县| 仙游县| 商都县| 汉源县| 林甸县| 麻阳| 当阳市| 台中市| 无棣县| 新闻| 防城港市| 环江| 芜湖县| 昌乐县| 台前县| 双流县| 通海县| 措美县| 疏勒县|