打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
window Nginx 搭建本地图片服务器

worker_processes  1;

events {

    worker_connections  1024;

}

http {

    include       mime.types;

    default_type  application/octet-stream;

    sendfile        on;

    keepalive_timeout  65;

    fastcgi_intercept_errors on;

    upstream testxx {    

        server  172.16.17.38:8080;  #跳三下

        server  172.16.17.38:9090;  #跳三下

    }

    server {

        listen       8081;

        server_name  localhost;

        location / {

            proxy_pass http://testxx;

        }

        location ~ /SharedImageServer/(headpic|contentpic)/.*\.(gif|jpg|jpeg|png)$ {

           root  D:\images;

   autoindex on;

        }

        error_page   500 502 503 504  /50x.html;

        location = /50x.html {

            root   html;

        }

    }

}

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
nginx配置简单图片显示
tomcat结合nginx使用小结
nginx的简介,安装和简单配置
nginx tomcat负载均衡之文件上传访问策略
yum安装nginx-mysql-php-fastcgi构建LNMP服务器
利用nginx搭建RTMP视频点播、直播、HLS服务器
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服