nginx - nginx服务器定位路由
问题描述
它是我的 nginx 配置文件
server {
listen 80;
server_name san.cashbaba.com.bd www.san.cashbaba.com.bd;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
它现在工作正常。我的要求是,如果有人在浏览器地址栏中写入san.cashbaba.com.bd/admin然后打开另一个应用程序,该应用程序已经存储在/usr/share/nginx/html/adminApp文件夹中。
任何人都可以帮助我如何在此配置文件中编写此配置
解决方案
推荐阅读
- javascript - 使用javascript显示特定字符后跟字符串中的数字
- java - Netty ByteBuf 接收大小!= 发送大小
- django - django 用于制作我的推荐系统
- powershell - Exchange 导出脚本未写入单个 pst 文件
- pyspark - Spark 无法读取 kafka 主题并给出错误“无法在超时 6000 内连接到 Zookeeper 服务器”
- apache-spark - spark 2.3.0、aws-sdk-java 1.7.4 - s3a 读取失败并出现 AmazonS3Exception 错误请求?
- php - 我的邮件功能有什么错误?
- php - 我无法使用 php 从 excel 导入 Mysql
- augmented-reality - 动态图像是否可以在设备上进行图像识别?
- android - 偏远地区的智能手机标记系统