laravel.conf 850 B

12345678910111213141516171819202122232425262728293031323334
  1. server {
  2. listen 8080;
  3. server_name _;
  4. access_log /workspace/iapt-platform/tmp/nginx-access.org;
  5. error_log /workspace/iapt-platform/tmp/nginx-error.log;
  6. add_header X-Frame-Options "SAMEORIGIN";
  7. add_header X-Content-Type-Options "nosniff";
  8. root /workspace/iapt-platform/mint-laravel/public;
  9. index index.html index.php;
  10. charset utf-8;
  11. gzip on;
  12. client_max_body_size 16M;
  13. location / {
  14. try_files $uri $uri/ /index.php?$query_string;
  15. }
  16. location = /favicon.ico { access_log off; log_not_found off; }
  17. location = /robots.txt { access_log off; log_not_found off; }
  18. error_page 404 /index.php;
  19. location ~ \.php$ {
  20. fastcgi_pass unix:/run/php/php-fpm.sock;
  21. fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
  22. include fastcgi_params;
  23. }
  24. location ~ /\.(?!well-known).* {
  25. deny all;
  26. }
  27. }