app.beta.conf 648 B

123456789101112131415161718192021
  1. server {
  2. listen 80;
  3. index index.php index.html;
  4. error_log /var/log/nginx/error.log;
  5. access_log /var/log/nginx/access.log;
  6. client_max_body_size 50m;
  7. root /var/www/public;
  8. location ~ \.php$ {
  9. try_files $uri =404;
  10. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  11. fastcgi_pass app_config_manage_beta:9000;
  12. fastcgi_index index.php;
  13. include fastcgi_params;
  14. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  15. fastcgi_param PATH_INFO $fastcgi_path_info;
  16. }
  17. location / {
  18. try_files $uri $uri/ /index.php?$query_string;
  19. gzip_static on;
  20. }
  21. }