some nginx fixes

This commit is contained in:
creme 2019-12-09 14:26:49 +01:00
parent ce04c017ec
commit c74381d6a3
Signed by: creme
GPG Key ID: C147C3B7FBDF08D0
3 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ include /etc/nginx/modules-enabled/*.conf;
error_log /var/log/nginx/error.log crit;
events {
worker_connections 4000;
worker_connections 10240;
use epoll;
multi_accept on;
}

View File

@ -35,7 +35,7 @@ server {
root /var/www/envs.net/;
index index.php index.html;
rewrite ^([^.\?]*[^/])$ $1/ permanent;
#rewrite ^([^.\?]*[^/])$ $1/ permanent;
location / {
add_header Access-Control-Allow-Origin *;
@ -54,7 +54,7 @@ server {
# users
location ~ ^/(~|u/)(?<user>[\w-]+)(?<user_uri>/.*)?$ {
alias /home/$user/public_html$user_uri;
index index.html index.php;
index index.html index.php index.cgi index.py index.sh index.pl index.lua;
fancyindex on;
fancyindex_exact_size off;

View File

@ -1,5 +1,5 @@
root /home/$user/public_html;
index index.html index.php;
index index.html index.php index.cgi index.py index.sh index.pl index.lua;
include snippets/php.conf;
include fastcgi_params;