设为首页 加入收藏

TOP

原创:Nginx反向代理实战部署(二)
2017-10-13 10:36:39 】 浏览:1553
Tags:原创 Nginx 代理 实战 部署

172.16.1.51     db01 db01.etiantian.org

172.16.1.31     nfs01

172.16.1.41     backup

172.16.1.61     m01

 

 

  web服务器1   10.0.0.7

                           [root@web02 conf]# cat nginx.conf

worker_processes  1;

      events {

          worker_connections  1024;

      }

      http {

          include       mime.types;

          default_type  application/octet-stream;

          sendfile        on;

          keepalive_timeout  65;

          log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '

                            '$status $body_bytes_sent "$http_referer" '

                            '"$http_user_agent" "$http_x_forwarded_for"';

          server {

              listen       80;

              server_name  bbs.etiantian.org;

              location / {

                  root   html/bbs;

                  index  index.html index.htm;

              }

  access_log  logs/access_bbs.log  main;

          }  

          server {

              listen       80;

              server_name  www.etiantian.org;

              location / {

                  root   html/www;

    

首页 上一页 1 2 3 4 下一页 尾页 2/4/4
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇linux安装与远程连接 下一篇Redis info 参数详解

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目