1 Star 0 Fork 781

fenghaiju/roncoo-education-web

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
default.conf 4.15 KB
一键复制 编辑 原始数据 按行查看 历史
fenghaiju 提交于 2019-10-08 23:03 . 发布到系统
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
location ^~ /system {
proxy_pass http://roncoo.vicp.net/api/system;
proxy_set_header Host roncoo.vicp.net;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location ^~ /course/api {
proxy_pass http://roncoo.vicp.net/api/course/api;
proxy_set_header Host roncoo.vicp.net;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location ^~ /course/auth {
proxy_pass http://roncoo.vicp.net/api/course/auth;
proxy_set_header Host roncoo.vicp.net;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location ^~ /web {
proxy_pass http://roncoo.vicp.net/api/web;
proxy_set_header Host roncoo.vicp.net;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location ^~ /activity {
proxy_pass http://roncoo.vicp.net/api/activity;
proxy_set_header Host roncoo.vicp.net;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location ^~ /user {
proxy_pass http://roncoo.vicp.net/api/user;
proxy_set_header Host roncoo.vicp.net;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location ^~ /agent {
proxy_pass http://roncoo.vicp.net/api/agent;
proxy_set_header Host roncoo.vicp.net;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location ^~ /zuul {
proxy_pass http://roncoo.vicp.net/api/zuul;
proxy_set_header Host roncoo.vicp.net;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location ^~ /auth/course {
proxy_pass http://roncoo.vicp.net/api/auth/course;
proxy_set_header Host roncoo.vicp.net;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location ^~ /auth/user{
proxy_pass http://roncoo.vicp.net/api/auth/user;
proxy_set_header Host roncoo.vicp.net;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/fenghaiju/roncoo-education-web.git
[email protected]:fenghaiju/roncoo-education-web.git
fenghaiju
roncoo-education-web
roncoo-education-web
master

搜索帮助