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.

43 lines
1.2 KiB

4 years ago
  1. <?php $__env->startSection('server'); ?>
  2. root <?php echo e($root); ?>;
  3. index <?php echo e($index); ?>;
  4. # rewrite
  5. location / {
  6. try_files $uri $uri/ /index.php?$args;
  7. }
  8. location = /favicon.ico {
  9. log_not_found off;
  10. access_log off;
  11. }
  12. location = /robots.txt {
  13. allow all;
  14. log_not_found off;
  15. access_log off;
  16. }
  17. location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
  18. expires max;
  19. log_not_found off;
  20. }
  21. location ~ /\. {
  22. deny all;
  23. }
  24. location ~* /(?:uploads|files)/.*\.php$ {
  25. deny all;
  26. }
  27. # php-fpm configuration.
  28. location ~ \.php(/|$) {
  29. fastcgi_split_path_info ^(.+\.php)(.*)$;
  30. fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
  31. fastcgi_index index.php;
  32. fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
  33. fastcgi_param DOCUMENT_ROOT $realpath_root;
  34. include /etc/nginx/fastcgi_params;
  35. }
  36. <?php $__env->stopSection(); ?>
  37. <?php echo $__env->make($ssl ? 'layouts.ssl' : 'layouts.no-ssl', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/test/Workspace/tentakelfabrik/mcp/resources/templates/nginx/wordpress.blade.php ENDPATH**/ ?>