server { listen 80; server_name rismanage3.pacsonline.cn; rewrite ^(.*)$ https://${server_name}$1 permanent; } server { server_name rismanage3.pacsonline.cn; listen 1443; access_log /data/logs/nginx/ris/maccess.log; error_log /data/logs/nginx/ris/merror.log; index index.html index.php; #client_max_body_size 1024m; root /data/gitcode/server/manage/public; location / { index index.php index.html index.htm; if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; break; } if ( -f $request_filename) { break; } } location ~ \.php($|/) { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^(.+\.php)(.*)$; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; include fastcgi_params; } }