default.conf 704B

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