kefu.conf 1012 B

1234567891011121314151617181920212223242526272829303132333435
  1. server {
  2. charset utf-8;
  3. client_max_body_size 128M;
  4. listen 80;
  5. server_name v1.stkf.test;
  6. root /home/www/kefu/stkf_v1/www/web;
  7. index index.php;
  8. location / {
  9. try_files $uri $uri/ /index.php?$args;
  10. }
  11. location ~ \.php$ {
  12. include fastcgi_params;
  13. fastcgi_index index.php;
  14. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  15. fastcgi_pass 127.0.0.1:9000;
  16. try_files $uri =404;
  17. }
  18. location /ws/ {
  19. proxy_pass http://127.0.0.1:8282;
  20. # WebScoket Support
  21. proxy_http_version 1.1;
  22. proxy_set_header Upgrade $http_upgrade;
  23. proxy_set_header Connection "upgrade";
  24. proxy_set_header Origin xxx;
  25. proxy_set_header X-Real-IP $remote_addr;
  26. proxy_set_header REMOTE-HOST $remote_addr;
  27. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  28. proxy_set_header Host $http_host;
  29. proxy_set_header X-NginX-Proxy true;
  30. }
  31. }