PHP Classes

File: docker/nginx/nginx.conf

Recommend this page to a friend!
  Classes of Nahidul Hasan   Laravel Docker Kubernetes   docker/nginx/nginx.conf   Download  
File: docker/nginx/nginx.conf
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Laravel Docker Kubernetes
Run a Laravel project using Docker and Kubernetes
Author: By
Last change:
Date: 2 years ago
Size: 1,319 bytes
 

Contents

Class file image Download
server { # Set the port to listen on and the server name listen 80 default_server; # Set the document root of the project root /var/www/html/public; # Set the directory index files index index.php index.html index.htm; # Specify the default character set charset utf-8; # Setup the default location configuration location / { try_files $uri $uri/ /index.php?$args; } # Specify the details of favicon.ico location = /favicon.ico { access_log off; log_not_found off; } # Specify the details of robots.txt location = /robots.txt { access_log off; log_not_found off; } # Specify the logging configuration access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; sendfile off; client_max_body_size 100m; # Specify what happens when PHP files are requested location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass localhost:9000; fastcgi_index index.php?$args; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_intercept_errors off; fastcgi_buffer_size 16k; fastcgi_buffers 4 16k; } # deny access to .htaccess files location ~ /\.ht { deny all; } }