![]() ![]() # PHP only, required if PHP was built with -enable-force-cgi-redirectįastcgi_param REDIRECT_STATUS 200 vi /etc /nginx /conf. Vi /etc /nginx /snippets /nf fastcgi_param SCRIPT_FILENAME $document_root $fastcgi_script_name įastcgi_param QUERY_STRING $query_string įastcgi_param REQUEST_METHOD $request_method įastcgi_param CONTENT_TYPE $content_type įastcgi_param CONTENT_LENGTH $content_length įastcgi_param SCRIPT_NAME $fastcgi_script_name įastcgi_param DOCUMENT_URI $document_uri įastcgi_param DOCUMENT_ROOT $document_root įastcgi_param SERVER_PROTOCOL $server_protocol įastcgi_param GATEWAY_INTERFACE CGI / 1.1 įastcgi_param SERVER_SOFTWARE nginx / $nginx_version # Lowering this value will mean allocations will be recycled faster. _tw_reuse = 1 # The minimum number of seconds that must elapse before # a connection in TIME_WAIT state can be recycled. We need to define for each server the limitconn value refering to this or other zones. # This is cheaper than setting up a new connection from scratch. Raw nf - mode: nginx mode: flyspell-prog mode: autopair ispell-local-dictionary: 'american' - Define a zone for limiting the number of simultaneous connections nginx accepts. Setting this directive to 1 # will tell the kernel to try to recycle the allocation # for a new connection when safe to do so. # TIME_WAIT means a connection is closed but the allocated # resources are yet to be released. _window_scaling = 1 # When the server has to cycle through a high volume of TCP connections, # it can build up a large number of connections in TIME_WAIT state. _wmem = 4096 87380 16777216 # Increase Linux auto tuning TCP buffer limits # min, default, and max number of bytes to use # set max to at least 4MB, or higher if you use very high BDP paths # Tcp Windows etc _local_port_range = 2000 65000 # Increase TCP max buffer size setable using setsockopt() Kernel.pid_max = 65536 # Increase system IP port limits max_addresses = 1 # Optimization for port usefor LBs # Increase system file descriptor limitįs.file-max = 65535 # Allow for more PIDs (to reduce rollover problems) may break some programs 32768 Kernel.randomize_va_space = 1 # Tune IPv6 Configurar Nginx Piwik es la aplicación líder de análisis web de código abierto, se ha desarrollado para proporcionar una alternativa a Google Analytics. secure_redirects = 0 # Don't act as a router Paso 1: instale Nginx y PHP-FPM Paso 2: configurar Nginx y PHP-FPM A. rp_filter = 1 # Make sure no one can alter the routing tables accept_source_route = 0 # Turn on reverse path filtering log_martians = 1 # No source routed packets here _syncookies = 1 # Turn on and log spoofed, source routed, and redirect packets _ignore_bogus_error_responses = 1 # Turn on syncookies for SYN flood attack protection _echo_ignore_broadcasts = 1 # Turn on protection for bad icmp error messages # Place this file in "/etc/sysctl.d/nf" and # run "sysctl -p" to have the kernel pick the new settings up # Avoid a smurf attack ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |