vhost.conf 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. server {
  2. listen 80;
  3. index index.php index.html;
  4. server_name bz.crmeb.com;
  5. root /var/www/public;
  6. location / {
  7. # try_files $uri /index.php$is_args$args;
  8. if (!-e $request_filename){
  9. rewrite ^(.*)$ /index.php?s=$1 last; break;
  10. }
  11. }
  12. location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
  13. {
  14. expires 30d;
  15. error_log off;
  16. access_log /dev/null;
  17. }
  18. location ~ .*\.(js|css)?$
  19. {
  20. expires 12h;
  21. error_log off;
  22. access_log /dev/null;
  23. }
  24. # location /notice {
  25. # proxy_pass http://192.168.10.90:20002;
  26. # proxy_http_version 1.1;
  27. # proxy_set_header Upgrade $http_upgrade;
  28. # proxy_set_header Connection "upgrade";
  29. # proxy_set_header X-real-ip $remote_addr;
  30. # proxy_set_header X-Forwarded-For $remote_addr;
  31. # }
  32. # location /msg {
  33. # proxy_pass http://192.168.10.90:20003/;
  34. # proxy_http_version 1.1;
  35. # proxy_set_header Upgrade $http_upgrade;
  36. # proxy_set_header Connection "upgrade";
  37. # proxy_set_header X-real-ip $remote_addr;
  38. # proxy_set_header X-Forwarded-For $remote_addr;
  39. # }
  40. # location ~ \.php$ {
  41. # fastcgi_split_path_info ^(.+\.php)(/.+)$;
  42. # fastcgi_pass phpfpm:9000;
  43. # fastcgi_index index.php;
  44. # include fastcgi_params;
  45. # fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  46. # fastcgi_param PATH_INFO $fastcgi_path_info;
  47. # }
  48. }