123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- server {
- listen 80;
- index index.php index.html;
- server_name bz.crmeb.com;
- root /var/www/public;
- location / {
- # try_files $uri /index.php$is_args$args;
- if (!-e $request_filename){
- rewrite ^(.*)$ /index.php?s=$1 last; break;
- }
- }
- location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
- {
- expires 30d;
- error_log off;
- access_log /dev/null;
- }
-
- location ~ .*\.(js|css)?$
- {
- expires 12h;
- error_log off;
- access_log /dev/null;
- }
- # location /notice {
- # proxy_pass http://192.168.10.90:20002;
- # proxy_http_version 1.1;
- # proxy_set_header Upgrade $http_upgrade;
- # proxy_set_header Connection "upgrade";
- # proxy_set_header X-real-ip $remote_addr;
- # proxy_set_header X-Forwarded-For $remote_addr;
- # }
- location ~ \.php$ {
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass phpfpm:9000;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- }
-
-
- }
|