首页 > 网络 > 其他 >

rsmapi-惊鸿一羽-51CTO博客

2019-11-22

upstream rsmapi {server 172 18 217 251:8080 weight=8;server 172 18 217 252 weight=4;server 172 18 217 253 weight=4;server 172 18 217 254 weight=4;} server {listen 8080 ;server_name r

upstream rsmapi {server 172.18.217.251:8080 weight=8;server 172.18.217.252 weight=4;server 172.18.217.253 weight=4;server 172.18.217.254 weight=4;}

server {listen 8080 ;server_name rsmapi.me2two.com ;root /data/web/me2two_bloc/public;index index.html index.htm index.php;access_log off;location / {index index.html index.htm index.php;if (!-e $request_filename) {rewrite ^(.*)$ /index.php?s=/$1 last;break;}}

    location ~ \.php(.*)$ {
            fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
            fastcgi_pass 127.0.0.1:9000;
            fastcgi_index index.php;
            fastcgi_param PATH_INFO $fastcgi_path_info;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include fastcgi_params;
    }

}

upstream rsm_wannado {server 172.18.217.251:8080 weight=8;server 172.18.217.252 weight=4;server 172.18.217.253 weight=4;server 172.18.217.254 weight=4;}

server {listen 8080 ;server_name rsm.wannado.top;root /data/web/me2two_bloc/public;index index.html index.htm index.php;access_log off;location / {index index.html index.htm index.php;if (!-e $request_filename) {rewrite ^(.*)$ /index.php?s=/$1 last;break;}}

    location ~ \.php(.*)$ {
            fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
            fastcgi_pass 127.0.0.1:9000;
            fastcgi_index index.php;
            fastcgi_param PATH_INFO $fastcgi_path_info;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include fastcgi_params;
    }

}

server{listen 80 ;listen 443 ssl;server_name rsm.wannado.top;#root /data/web/me2two_bloc/public;#index index.html index.htm index.php;ssl_certificate /usr/local/nginx/cert/2344080_rsm.wannado.top.pem;ssl_certificate_key /usr/local/nginx/cert/2344080_rsm.wannado.top.key;

    ssl_session_timeout 5m;
    ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_prefer_server_ciphers on;
    access_log /data/wwwlogs/rsm.access.log main ;

    location / {
            proxy_set_header Host $host;
            proxy_pass https://rsm_wannado;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

}
相关文章
最新文章
热点推荐