Advertisement
kfirufk

Untitled

Jun 26th, 2017
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.94 KB | None | 0 0
  1. worker_processes auto;
  2.  
  3.  
  4. events {
  5.     worker_connections 1024;
  6.     use epoll;
  7. }
  8.  
  9. http {
  10.  
  11.     sendfile            on;
  12.     tcp_nopush          on;
  13.     tcp_nodelay         on;
  14.     keepalive_timeout   65;
  15.     types_hash_max_size 2048;
  16.  
  17. server {
  18.   listen 80 default_server;
  19.   listen [::]:80 default_server ipv6only=on;
  20.  
  21.   listen 443 ssl;
  22.  
  23.   server_name tux-n.com;
  24.   root /usr/share/nginx/html;
  25.   ssl_certificate /etc/letsencrypt/live/tux-in.com/cert.pem;
  26.   ssl_certificate_key /etc/letsencrypt/live/tux-in.com/privkey.pem;
  27. location ~ [^/]\.php(/|$) {
  28.     fastcgi_split_path_info ^(.+?\.php)(/.*)$;
  29.     if (!-f $document_root$fastcgi_script_name) {
  30.         return 404;
  31.     }
  32.  
  33.     # Mitigate https://httpoxy.org/ vulnerabilities
  34.     fastcgi_param HTTP_PROXY "";
  35.     fastcgi_param DOCUMENT_ROOT "/var/www/html";
  36.  
  37.     fastcgi_pass 127.0.0.1:9000;
  38.     fastcgi_index index.php;
  39.     include fastcgi_params;
  40. }
  41. location / {
  42. }
  43.  
  44. }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement