Mrcdh技术博客 Mrcdh技术博客
首页
  • Html5
  • Javascript
  • Nodejs
  • electron
  • Android
  • 微信公众号
  • 框架
  • 其他
  • Mysql
  • PHP
  • Python
  • java
  • Gulp
  • 其它
  • 网站
  • 资源
  • 分类
  • 标签
  • 归档
GitHub (opens new window)

Mrcdh

全栈开发小学生
首页
  • Html5
  • Javascript
  • Nodejs
  • electron
  • Android
  • 微信公众号
  • 框架
  • 其他
  • Mysql
  • PHP
  • Python
  • java
  • Gulp
  • 其它
  • 网站
  • 资源
  • 分类
  • 标签
  • 归档
GitHub (opens new window)
  • Mysql

  • PHP

  • Python

  • java

  • Go

  • 数据库

  • C#

  • ElasticSearch

  • Git

  • Gulp

  • Microsoft

  • Linux

  • 其它

    • 使用puppeth工具生成以太坊创世区块
    • 使用宝塔WebHook自动化部署
    • Vs Code常用插件
    • 宝塔面板使用www用户执行命令
    • WSL2-Ubuntu常见使用问题
    • ffmpeg的基本使用技巧
    • VSStudio使用技巧
    • Navicat无限重置试用期脚本
    • Nginx基本使用
      • 重定向
      • 转发
    • Docker的使用
    • Docker常见软件安装
    • Windows常用技巧
    • Ubuntu的基本使用
  • 技术
  • 其它
mrcdh
2023-10-03
目录

Nginx基本使用

# 重定向

location /pc/ {
  index index.html;
  try_files $uri $uri/ /pc/index.html;
}


location /mobile/{
  index index.html;
  try_files $uri $uri/ /mobile/index.html;
}
1
2
3
4
5
6
7
8
9
10

# 转发

server {
    listen      80; 
    server_name  www.xxxxx.cn;
    location ^~ /api/ {
        proxy_pass   http://127.0.0.1:8080/;
    }
}
1
2
3
4
5
6
7
上次更新: 2023/12/11, 15:15:13
Navicat无限重置试用期脚本
Docker的使用

← Navicat无限重置试用期脚本 Docker的使用→

最近更新
01
uniapp常见问题
03-19
02
Vue3项目搭建
12-25
03
使用pnpm的monorepo组织项目
11-01
更多文章>
Theme by Vdoing | Copyright © 2020-2025 Mrcdh | 苏ICP备2020058908号-1
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式
×