| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- server {
- #listen 80;
- listen 443 ssl http2;
- server_name t.qmgames.cn;
- client_max_body_size 108M;
-
- if ($time_iso8601 ~ "^(\d{4})-(\d{2})-(\d{2})") {
- set $year $1;
- set $month $2;
- set $day $3;
- }
- ssl_certificate /app/key/t.qmgames.cn.pem;
- ssl_certificate_key /app/key/t.qmgames.cn.key;
- access_log /app/logs/access.$year-$month-$day-access.log combined;
- error_log /app/logs/default_error.log;
- root /app/www/new_sdk/public;
-
- location / {
- #try_files $uri $uri/ /index.php$is_args$args;
- index index.php index.html;
- if (!-e $request_filename) {
- rewrite ^(.*)$ /index.php?s=/$1 last;
- }
- }
-
- location ~ \.php$ {
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param PHP_VALUE "error_log=/var/log/nginx/application_php_errors.log";
- fastcgi_buffers 16 16k;
- fastcgi_buffer_size 32k;
- include fastcgi_params;
- }
- }
|