Last active
April 25, 2018 15:39
-
-
Save me7media/cf3dd90509452a701cc951b18a7ac7bf to your computer and use it in GitHub Desktop.
Конфигурация №1 nano /etc/nginx/nginx.conf Проверка nginx -t -c /etc/nginx/nginx.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes 1; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 768; | |
multi_accept on; | |
use epoll; | |
} | |
http { | |
add_header X-Content-Type-Options nosniff; | |
add_header X-XSS-Protection "1; mode=block"; | |
add_header X-Frame-Options SAMEORIGIN; | |
upstream php { | |
server unix:/tmp/php-cgi.socket; | |
server 127.0.0.1:9000; | |
} | |
open_file_cache_valid 30s; | |
open_file_cache_min_uses 1; | |
open_file_cache_errors on; | |
sendfile on; | |
tcp_nopush on; | |
tcp_nodelay on; | |
keepalive_timeout 30; | |
keepalive_requests 1000; | |
reset_timedout_connection on; | |
client_body_timeout 30; | |
send_timeout 15; | |
types_hash_max_size 2048; | |
server_tokens off; | |
# server_names_hash_bucket_size 64; | |
# server_name_in_redirect off; | |
include /etc/nginx/mime.types; | |
default_type application/octet-stream; | |
access_log /var/log/nginx/access.log; | |
error_log /var/log/nginx/error.log; | |
include /etc/nginx/sites-enabled/*; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment