nginx配置多个静态资源
2023-09-14 08:59:30 时间
#user nobody; worker_processes 4; worker_cpu_affinity 0001 0010 0100 1000; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; client_max_body_size 20m; sendfile on; keepalive_timeout 65; underscores_in_headers on; upstream fdfs_group1 { server 127.0.0.1:9011; } #gzip on; server { listen 80; server_name dev.dongshanhaibao.com; #charset koi8-r; #access_log logs/host.access.log main; rewrite ^(.*)$ https://$host$1 permanent; } server { listen 443 ssl; server_name dev.dongshanhaibao.com; ssl on; ssl_certificate ssl/2844030_dev.dongshanhaibao.com.pem; ssl_certificate_key ssl/2844030_dev.dongshanhaibao.com.key; ssl_session_cache shared:SSL:5m; ssl_session_timeout 25m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; location / { # root html; # index index.html index.htm; proxy_pass http://localhost:9002/; proxy_set_header Host $http_host; } location /www1{ alias /usr/share/nginx/html; index index.html index.php index.htm; } location /www2{ alias /usr/share/nginx/dist; index index.html index.php index.htm; } location /group1/M00 { proxy_pass http://fdfs_group1; } location /adminw { proxy_pass http://localhost:9001/; proxy_set_header Host $http_host; } } }
相关文章
- faster r-cnn 在CPU配置下训练自己的数据
- Android studio环境配置(运行报错)
- redis 安装和配置
- SonarQube - 常用配置与操作
- nginx配置多个静态资源
- spring boot通过命令行配置属性
- @ConfigurationProperties实现配置注入到实体类
- tomcat8.0 基本参数调优配置
- 玩转华为数据中心交换机系列 | 配置动态路由接入M-LAG
- 华为运营商级路由器配置示例 | EVdPdNd L3VdPdNdv6 over SRv6 TE Policy(静态配置)
- 华为运营商级路由器配置示例 | 动态BFD检测IPv4静态路由
- 【Linux网络配置实战】服务器Network静态路由配置
- 嵌入式linux开发,Ubuntu下安装、使用cmake及图形界面cmake-gui,及cmake配置交叉编译工具
- VMware下centos 7配置静态ip
- 龙芯软件开发(13)--配置南桥进入调试新天地
- sphinx的配置
- 在华为eNSP上静态路由的配置拓扑
- 基于Hyper-V的centos7虚拟机配置静态ip
- 学习C++:C++进阶(三)CMake基础篇---用cmake配置静态库、共享库、仅有头文件的库、对象库并使用这些库
- H3C S6520交换机在现网环境下如何不断网配置堆叠(现网实战经验)