mirror of https://git.envs.net/envs/ops.git
some nginx fixes
This commit is contained in:
parent
ce04c017ec
commit
c74381d6a3
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue