Guest User

Untitled

a guest
May 23rd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.29 KB | None | 0 0
  1. user www-data;
  2. worker_processes 2;
  3. pid /run/nginx.pid;
  4.  
  5. worker_rlimit_nofile 100000;
  6.  
  7. events {
  8. #worker_connections 4096;
  9. worker_connections 2048;
  10. # SOLO PARA PRUEBAS
  11. use epoll;
  12. # SOLO PARA PRUEBAS
  13. multi_accept on;
  14. }
  15.  
  16. http {
  17. ##
  18. # Basic Settings
  19. ##
  20.  
  21. # cache informations about FDs, frequently accessed files
  22. # can boost performance, but you need to test those values
  23. open_file_cache max=200000 inactive=20s;
  24. open_file_cache_valid 30s;
  25. open_file_cache_min_uses 2;
  26. open_file_cache_errors on;
  27.  
  28. sendfile on;
  29. tcp_nopush on;
  30. tcp_nodelay on;
  31. keepalive_timeout 10;
  32. keepalive_requests 1000;
  33. types_hash_max_size 2048;
  34. server_tokens off;
  35.  
  36. # server_names_hash_bucket_size 64;
  37. # server_name_in_redirect off;
  38.  
  39. include /etc/nginx/mime.types;
  40. default_type application/octet-stream;
  41.  
  42.  
  43. ##
  44. # Logging Settings
  45. ##
  46.  
  47. access_log off;
  48. #access_log /var/log/nginx/access.log;
  49. error_log /var/log/nginx/error.log debug;
  50.  
  51. ##
  52. # Gzip Settings
  53. ##
  54.  
  55. #gzip on;
  56. #gzip_disable "msie6";
  57.  
  58. #gzip_vary on;
  59. #gzip_proxied any;
  60. #gzip_comp_level 6;
  61. #gzip_min_length 1000;
  62. #gzip_buffers 16 8k;
  63. #gzip_http_version 1.1;
  64. #gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
  65.  
  66. # allow the server to close connection on non responding client, this will free up memory
  67. reset_timedout_connection on;
  68.  
  69. ##
  70. # Virtual Host Configs
  71. ##
  72.  
  73. include /etc/nginx/conf.d/*.conf;
  74. include /etc/nginx/sites-enabled/*;
  75. }
  76.  
  77. # Default server configuration
  78. #
  79. server {
  80.  
  81. # SSL configuration
  82. #
  83. listen 443 ssl default_server;
  84. listen [::]:443 ssl default_server;
  85.  
  86. #expires $expires;
  87.  
  88. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  89. #ssl_ciphers AES128-SHA:AES256-SHA:RC4-SHA:DES-CBC3-SHA:RC4-MD5;
  90. ssl_ciphers ALL:!aNULL:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
  91. ssl_certificate_key /var/www/afct/.lis/pollafutbolera.comfandi.com.co.key;
  92. ssl_certificate /var/www/afct/ea21c6af62f3cf3d.crt;
  93. ssl_session_cache builtin:1000 shared:SSL:10m;
  94. ssl_session_timeout 10m;
  95. ssl_buffer_size 4k;
  96. # Note: You should disable gzip for SSL traffic.
  97. # See: https://bugs.debian.org/773332
  98. #
  99. # Read up on ssl_ciphers to ensure a secure configuration.
  100. # See: https://bugs.debian.org/765782
  101. #
  102. # Self signed certs generated by the ssl-cert package
  103. # Don't use them in a production server!
  104. #
  105. # include snippets/snakeoil.conf;
  106.  
  107. root /var/www/html;
  108.  
  109. # Add index.php to the list if you are using PHP
  110. index index.html index.php;
  111.  
  112. server_name www.pollafutbolera.comfandi.com.co;
  113.  
  114. location / {
  115. # First attempt to serve request as file, then
  116. # as directory, then fall back to displaying a 404.
  117. #try_files $uri $uri/ =404;
  118. try_files $uri $uri/ /index.php?$query_string;
  119. }
  120.  
  121. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  122. #
  123. location ~ .php$ {
  124. include snippets/fastcgi-php.conf;
  125. #
  126. # # With php7.0-cgi alone:
  127. fastcgi_pass 127.0.0.1:9000;
  128. # # With php7.0-fpm:
  129. #fastcgi_pass unix:/run/php/php7.2-fpm.sock;
  130. fastcgi_read_timeout 240;
  131. }
  132.  
  133. # deny access to .htaccess files, if Apache's document root
  134. # concurs with nginx's one
  135. #
  136. location ~ /.ht {
  137. deny all;
  138. }
  139.  
  140. location ~* .(?:ico|css|js|gif|jpe?g|png)$ {
  141. # Some basic cache-control for static files to be sent to the browser
  142. expires max;
  143. add_header Pragma public;
  144. add_header Cache-Control "public, must-revalidate, proxy-revalidate";
  145. }
  146. }
Add Comment
Please, Sign In to add comment