宝塔运行在nginx二级目录代理配置
访问路径为 http://1.15.13.54/bt/,每个静态文件和请求地址都需要重新代理
server
{listen 80;server_name 1.15.13.54;index index.php index.html index.htm default.php default.htm default.html;location / {root /www/wwwroot/1.15.13.54;}location /login {proxy_pass http://127.0.0.1:8888/login;}location /login/ {proxy_pass http://127.0.0.1:8888/login/;}location /code {proxy_pass http://127.0.0.1:8888/code;}location /code/ {proxy_pass http://127.0.0.1:8888/code/;}location /bt/ {proxy_pass http://127.0.0.1:8888/;}location /static/ {proxy_pass http://127.0.0.1:8888/static/;}location /static {proxy_pass http://127.0.0.1:8888/static;}location /ajax/ {proxy_pass http://127.0.0.1:8888/ajax/;}location /ajax {proxy_pass http://127.0.0.1:8888/ajax;}location /message {proxy_pass http://127.0.0.1:8888/message;}location /config/ {proxy_pass http://127.0.0.1:8888/config/;}location /config {proxy_pass http://127.0.0.1:8888/config;}location /system {proxy_pass http://127.0.0.1:8888/system;}location /task {proxy_pass http://127.0.0.1:8888/task;}location /workorder {proxy_pass http://127.0.0.1:8888/workorder/;}location /plugin {proxy_pass http://127.0.0.1:8888/plugin;}location /warning/ {proxy_pass http://127.0.0.1:8888/warning/;}location /warning {proxy_pass http://127.0.0.1:8888/warning;}location /site {proxy_pass http://127.0.0.1:8888/site;}location /site/ {proxy_pass http://127.0.0.1:8888/site/;}location /data/ {proxy_pass http://127.0.0.1:8888/data/;}location /data {proxy_pass http://127.0.0.1:8888/data;}location /database/ {proxy_pass http://127.0.0.1:8888/database/;}location /database {proxy_pass http://127.0.0.1:8888/database;}location /control/ {proxy_pass http://127.0.0.1:8888/control/;}location /control {proxy_pass http://127.0.0.1:8888/control;}location /files/ {proxy_pass http://127.0.0.1:8888/files/;}location /files {proxy_pass http://127.0.0.1:8888/files;}location /firewall/ {proxy_pass http://127.0.0.1:8888/firewall/;}location /firewall {proxy_pass http://127.0.0.1:8888/firewall;}location /xterm/ {proxy_pass http://127.0.0.1:8888/xterm/;}location /xterm {proxy_pass http://127.0.0.1:8888/xterm;}location /crontab/ {proxy_pass http://127.0.0.1:8888/crontab/;}location /crontab {proxy_pass http://127.0.0.1:8888/crontab;}location /soft/ {proxy_pass http://127.0.0.1:8888/soft/;}location /soft {proxy_pass http://127.0.0.1:8888/soft;}location /ssl/ {proxy_pass http://127.0.0.1:8888/ssl/;}location /ssl {proxy_pass http://127.0.0.1:8888/ssl;}access_log /www/wwwlogs/1.15.13.54.log;error_log /www/wwwlogs/1.15.13.54.error.log;
}
宝塔运行在nginx二级目录代理配置相关推荐
- nginx 二级目录 php,Nginx 配置二级目录支持
Nginx 配置二级目录并不像 apache 那么简单,但二级目录的配置在实际工作中又经常用到,现整理如下.欢迎大家访问 二愣的闲谈杂鱼 在 /etc/nginx 目录下创建文件夹 sublocati ...
- Nginx 二级目录部署Vue2
Nginx 二级目录部署Vue2 nginx 服务器上 /xxxxx 是二级目录是对访问路径匹配 location /xxxx {root /public/app/dist;index index.p ...
- 使用 Nginx 实现四层代理配置
一.基本介绍 平时我们在配置 Nginx 代理时,一般配置的都是基于 http 或是 https 协议的代理,也就是应用层.但是有些时候,我们并不想配置这种基于应用层的代理.比如说:我们要代理到数据库 ...
- nginx搭建反向代理配置并测试
前言: 如今信息时代,对于web服务器的要求很高,既要性能,又要稳定性,又经济最好免费,还要满足公司的各大奇葩业务需求,越来越挑剔,就像你去买手机,中意的是外观好看,功能强大,拍照清晰,存储大,不死机 ...
- vue部署nginx二级目录
很多时候,我们希望前端的程序时放在二级目录下的,比如 http://www.xxx.com/app/ (app就是二级) 前端vue需要注意的是,静态资源文件的路径和路由的路径,两个默认都是针对/目录 ...
- nginx二级目录转发404的解决方法
有时候考虑的域名的问题,可能会用一个域名去访问两个应用,这个时候可以用二级目录去访问. nginx配置 location /v1 {proxy_pass http://10.168.154.xx:80 ...
- nginx之反向代理配置
参数用nginx进行反向代理,我这边的有好几个系统,都是不同的IP和端口.我希望在外部访问的时候,是同一个IP和端口.这样可以解决跨域的问题, 结构图: 通过每个系统的网址可以直接访问,另外,我们通过 ...
- 前端开发必备技能知识笔记-二级目录的配置
说明 在同一个域名下部署多个项目的情况,我们就需要配置使用二级目录. 二级目录,就是子目录,继承在主站目录下的,相当于在网站的根目录下再建立一个文件夹存放网站. 例如: http://192.168. ...
- React+Nginx 二级域名指向配置
使React线上项目二级域名指向端口 欢迎使用Markdown编辑器 开始前检查你的Nginx 检查是否正常 编写nginx.conf 在同级目录的conf.d目录里 清理一下缓存 欢迎使用Markd ...
最新文章
- python如何编写数据库_如何在几分钟内用Python编写一个简单的玩具数据库
- SAS学习笔记之《SAS编程与数据挖掘商业案例》(4)DATA步循环与控制、常用全程语句、输出控制...
- hibernate继承关系映射方法(一)--共享一张表
- PSO-LSSVM算法及其MATLAB代码
- 为您的Office文档加把锁-ADRMS的安装
- word List38
- 基于Passthru的NDIS开发的个人理解
- jop怎么读音英语怎么说_“春晚”英语怎么说?
- 不要给a设置outline:none
- 使用console.table()调试javascript
- GPRS通信原理+中国移动micro sim 卡,实现经过tcp/ip 传输数据到服务器
- 模2除法介绍(CRC校验码计算)
- 人工智能认知技术,在各行业的应用介绍
- 智慧天气系统 - 可视化大屏(Echarts)管理系统(HTTP(S)协议)物联网平台(MQTT协议)
- python将横转为竖_【后端开发】python数据竖着怎么变横的?
- mysql已启动但无法连接_MySQL无法正常启动,Navicat连接出错,解决2003问题
- 调用百度网盘开放平台接口,操作百度网盘中的文件,上传、下载等
- Window 10 电源高性能模式设置
- 海思3559A pwm驱动编写记录
- 美赛数学建模 | 信息检索与竞赛工具 降低信息差