阿里云OSS对象存储的Nginx反向代理设置,修改nginx.conf文件
本文也是参考文档写的,windows系统下载Nginx,linux安装Nginx,自行百度。
参考文档地址: https://blog.youkuaiyun.com/softwave/article/details/82623366
1、在nginx.conf中添加:
upstream ossproxy{
server 自己的endpoint;
}
server {
listen 80;
server_name www.oss.xxx.com;
error_page 404 http://oss.xxx.com/error;
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;