博客
关于我
Nginx反向代理配置
阅读量:792 次
发布时间:2023-02-15

本文共 2036 字,大约阅读时间需要 6 分钟。

Nginx ?????????????????????????????????????????? Nginx ????????????????

Nginx ??

Nginx ??????? Igor Sergeyev ? 2004 ?????????????????? Web ????????????????????????????????????

Nginx ????

  • ???????

    Nginx ?? epoll ???????????????????????Nginx ?????? 2-4 ? ?????????? Apache ???????

  • ??????

    Nginx ??????????????? 3 ? ??????Nginx ??? 150MB ???? PHP-CGI????? 1280MB ?????????? 2GB?????????????????????????

  • ????

    Nginx ???????? BSD ???????????????????? F5BIG-IP?NetScaler????Nginx ????????????????????????

  • ?????

    Nginx ??????????????????????????????????????????????

  • ?????

    Nginx ???????????? Rewrite ?????????????????????? GZIP ????????????????????

  • ????

    Nginx ?????????????????????????????????

  • ?????

    Nginx ??????????????????????????????

  • ???? vs ????

    ?????????????????????????????

  • ????

    ????????????????????????????????????????????????????????????????????????????????????????????????

  • ????

    ??????????????????????????????????????????????????????????????????????????????????????????? IP ???

  • ??????

    ??????? Nginx ????????

    server {    listen 80;    server_name localhost;    location / {        root /data/www/myWeb/home;        index index.html;    }    location /api {        proxy_pass https://www.baidu.com;        proxy_set_header Host "https://www.baidu.com";        proxy_set_header X-Real-IP $remote_addr;        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;        proxy_set_header X-Forwarded-Proto $scheme;        proxy_set_header X-Forwarded-Host $host:$server_port;    }}

    ???? Vue ?????????? vue.config.js ???????

    devServer: {    host: "localhost",    port: 8080,    https: false,    open: false,    hotOnly: true,    proxy: {        "/api": {            target: "https://www.baidu.com",            changeOrigin: true,            ws: true,            secure: false,            pathRewrite: {                "^/api": ""            }        }    }}

    ???????????? Nginx ??????????????????????????

    ??

    Nginx ??????????????????????????????????????????????? Nginx????????????????????????????????????????????????????????????????????????

    转载地址:http://cecfk.baihongyu.com/

    你可能感兴趣的文章
    Navicat中怎样将SQLServer的表复制到MySql中
    查看>>
    navicat创建连接 2002-can‘t connect to server on localhost(10061)且mysql服务已启动问题
    查看>>
    Navicat可视化界面导入SQL文件生成数据库表
    查看>>
    Navicat向sqlserver中插入数据时提示:当 IDENTITY_INSERT 设置为 OFF 时,不能向表中的标识列插入显式值
    查看>>
    Navicat如何连接MySQL
    查看>>
    ndk特定版本下载
    查看>>
    Neat Stuff to Do in List Controls Using Custom Draw
    查看>>
    NeHe OpenGL教程 第四十四课:3D光晕
    查看>>
    neo4j图形数据库Java应用
    查看>>
    Neo4j安装部署及使用
    查看>>
    Neo4j电影关系图Cypher
    查看>>
    Neo4j的安装与使用
    查看>>
    Neo4j(2):环境搭建
    查看>>
    Neo4j(4):Neo4j - CQL使用
    查看>>
    Neo私链
    查看>>
    NervanaGPU 项目使用教程
    查看>>
    Nerves 项目教程
    查看>>
    nessus快速安装使用指南(非常详细)零基础入门到精通,收藏这一篇就够了
    查看>>
    Nessus漏洞扫描教程之配置Nessus
    查看>>
    Nest.js 6.0.0 正式版发布,基于 TypeScript 的 Node.js 框架
    查看>>