default.conf 720B

1234567891011121314151617181920212223242526272829
  1. server {
  2. listen 80;
  3. listen 443;
  4. location / {
  5. index index.html;
  6. root /var/www/fe;
  7. try_files $uri $uri/ /index.html;
  8. }
  9. location /api {
  10. index index.html index.php;
  11. root /var/www/be;
  12. try_files $uri $uri/ index.html /index.php?$query_string;
  13. }
  14. location ~ \.php$ {
  15. root /var/www/html/public;
  16. try_files $uri =404;
  17. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  18. fastcgi_pass php_moderna:9000;
  19. fastcgi_index index.php;
  20. include fastcgi_params;
  21. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  22. fastcgi_param PATH_INFO $fastcgi_path_info;
  23. }
  24. client_max_body_size 64M;
  25. }