diff --git a/docker-compose.yml b/docker-compose.yml index 335f68b..278e8bc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,8 +18,8 @@ services: ulimits: nproc: 65535 nofile: - soft: 20000 - hard: 40000 + soft: 20000 + hard: 40000 sysctls: net.core.somaxconn: '511' labels: diff --git a/docs/php-fpm.md b/docs/php-fpm.md index ee4d7e4..a42c6eb 100644 --- a/docs/php-fpm.md +++ b/docs/php-fpm.md @@ -165,4 +165,10 @@ SECRET_KEY = 32AdfjlkksjdfA ``` - - - +`phpfcgi7x` with `default` nginx template - use this if you need to work with .htaccess file. Let say you unzip Laravel into the `/home/{user}/web/{website.example.com}/lara-app` folder, then you want to create a symbolic link to `public_html` folder like so: +``` +ln -s lara-app/public public_html +``` + +- - - diff --git a/rootfs/etc/nginx/nginx.new b/rootfs/etc/nginx/nginx.new index 64d785b..a3c5e2c 100644 --- a/rootfs/etc/nginx/nginx.new +++ b/rootfs/etc/nginx/nginx.new @@ -94,14 +94,14 @@ http { proxy_cache_path /var/cache/nginx/site levels=1:2 keys_zone=site_diskcached:10m max_size=5g inactive=45m use_temp_path=off; proxy_cache_path /var/cache/nginx/disk levels=1:2 keys_zone=my_diskcached:50m max_size=7g inactive=7d use_temp_path=off; - proxy_cache_key $host$request_uri; + proxy_cache_key $scheme$host$request_uri; proxy_temp_path /var/cache/nginx/temp; proxy_ignore_headers Vary Expires Set-Cookie Cache-Control; proxy_pass_request_headers on; underscores_in_headers on; proxy_cache_min_uses 2; - proxy_cache site_diskcached; + #proxy_cache site_diskcached; proxy_ssl_server_name on; proxy_intercept_errors on;