OpenSource CLI-App to install and handle stuff related to Web-Server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
814 B

4 years ago
  1. @extends($ssl ? 'layouts.ssl' : 'layouts.no-ssl')
  2. @section('server')
  3. root {{ $root }};
  4. index {{ $index }};
  5. location / {
  6. try_files $uri $uri/ /{{ $index }}?$query_string;
  7. }
  8. location = /favicon.ico { access_log off; log_not_found off; }
  9. location = /robots.txt { access_log off; log_not_found off; }
  10. error_page 404 /index.php;
  11. # php-fpm configuration.
  12. location ~ \.php(/|$) {
  13. fastcgi_split_path_info ^(.+\.php)(.*)$;
  14. fastcgi_pass unix:/var/run/php/{{ $phpFpm }}.sock;
  15. fastcgi_index index.php;
  16. fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
  17. fastcgi_param DOCUMENT_ROOT $realpath_root;
  18. include /etc/nginx/fastcgi_params;
  19. }
  20. @endsection