| 1234567891011121314151617181920212223242526272829303132333435 |
- server {
- listen 19620;
- server_name _;
- charset utf-8;
- access_log /var/log/nginx/manage.access.log;
- error_log /var/log/nginx/manage.error.log;
- index index.html index.htm;
- #root /data/code/manage_dm/zskk_new_manage/public;
- root /var/www/html/zskk_new_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_connect_timeout 300s;
- fastcgi_send_timeout 300s;
- fastcgi_read_timeout 300s;
- fastcgi_pass php-fpm;
- 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;
- }
- }
|