123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- #user nobody;
- worker_processes 4;
- events {
- worker_connections 1024;
- use epoll;
- }
- http {
- default_type application/octet-stream;
- log_format main '$remote_addr - $remote_user [$time_local] "$request" '
- '$status $body_bytes_sent "$http_referer" '
- '"$http_user_agent" "$http_x_forwarded_for" "$request_time"';
- # error_log /dev/stderr;
- # access_log /dev/stdout main;
- sendfile on;
- #tcp_nopush on;
- #keepalive_timeout 0;
- keepalive_timeout 15;
- include /etc/nginx/mime.types;
- #gzip on;
- charset UTF-8;
- server {
- listen 80;
- listen [::]:80;
- server_name _;
- # For https
- # listen 443 ssl;
- # listen [::]:443 ssl ipv6only=on;
- # ssl_certificate /etc/nginx/ssl/default.crt;
- # ssl_certificate_key /etc/nginx/ssl/default.key;
- root /usr/share/nginx/html;
- index index.php index.html index.htm;
- location / {
- try_files $uri $uri/ /index.php$is_args$args;
- }
- location ~ \.php$ {
- try_files $uri /index.php =404;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_buffers 16 16k;
- fastcgi_buffer_size 32k;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- #fixes timeouts
- fastcgi_read_timeout 600;
- include fastcgi_params;
- }
- location ~ /\.ht {
- deny all;
- }
- location /.well-known/acme-challenge/ {
- root /var/www/letsencrypt/;
- log_not_found off;
- }
- error_log /var/log/nginx/laravel_error.log;
- access_log /var/log/nginx/laravel_access.log;
- }
- }
|