Advertisement
Guest User

000-default-server.conf

a guest
May 18th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.69 KB | None | 0 0
  1. server {
  2.     listen      8080 default;
  3.     server_name saipathuri.gyges.feralhosting.com;
  4.     root        /media/sdb1/saipathuri/www/$host/public_html;
  5.     index       index.html index.php;
  6.  
  7.     autoindex            on;
  8.     autoindex_exact_size off;
  9.     autoindex_localtime  on;
  10.  
  11.     # Pass files that end in .php to PHP
  12.     location ~ \.php$ {
  13.         fastcgi_read_timeout 1h;
  14.         fastcgi_send_timeout 10m;
  15.  
  16.         include      /etc/nginx/fastcgi.conf;
  17.         fastcgi_pass unix:/media/sdb1/saipathuri/.nginx/php/socket;
  18.     }
  19.  
  20.     # Deny access to anything starting with .ht
  21.     location ~ /\.ht {
  22.         deny  all;
  23.     }
  24.  
  25.     include conf.d/000-default-server.d/*.conf;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement