You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.5 KiB
51 lines
1.5 KiB
server { |
|
listen 80; |
|
server_name service.takeda.wx.com; |
|
# access_log /data/wwwlogs/demo.access.log combined; |
|
|
|
## logs section |
|
access_log /www/log/nginx/takeda/internal.nginx.access.log main; |
|
error_log /www/log/nginx/takeda/internal.nginx.error.log; |
|
|
|
root /www/takeda_main/proj_src/huiyuan/services/web; |
|
index index.html index.htm index.php; |
|
|
|
gzip on; |
|
gzip_min_length 1k; |
|
gzip_buffers 4 16k; |
|
#gzip_http_version 1.0; |
|
gzip_comp_level 2; |
|
gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png; |
|
gzip_vary on; |
|
gzip_disable "MSIE [1-6]\."; |
|
|
|
location /nginx_status { |
|
stub_status on; |
|
access_log off; |
|
allow 127.0.0.1; |
|
deny all; |
|
} |
|
|
|
location ~ ^/[0-9\-a-z]*$ { |
|
#fastcgi_pass remote_php_ip:9000; |
|
# fastcgi_pass unix:/dev/shm/php-cgi.sock; |
|
fastcgi_pass php72:9000; |
|
fastcgi_index index.php; |
|
include fastcgi.conf; |
|
fastcgi_param SCRIPT_FILENAME $document_root/index.php; |
|
if (!-e $request_filename){ |
|
rewrite ^/(.*)/index.php last; |
|
} |
|
} |
|
|
|
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|ico)$ { |
|
root /www/takeda_main/proj_src/huiyuan/services/web; |
|
expires 30d; |
|
access_log off; |
|
} |
|
location ~ .*\.(js|css|html|ttf|woff|woff2)$ { |
|
root /www/takeda_main/proj_src/huiyuan/services/web; |
|
expires 7d; |
|
access_log off; |
|
} |
|
}
|
|
|