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; error_log /var/log/nginx/error.log crit;
events { events {
worker_connections 4000; worker_connections 10240;
use epoll; use epoll;
multi_accept on; multi_accept on;
} }

View File

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

View File

@ -1,5 +1,5 @@
root /home/$user/public_html; 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 snippets/php.conf;
include fastcgi_params; include fastcgi_params;