gempir

Untitled

Mar 11th, 2017
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.86 KB | None | 0 0
  1. server {
  2.         listen 80;
  3.  
  4.         root /var/www/html;
  5.  
  6.         # Add index.php to the list if you are using PHP
  7.         index index.html index.htm index.nginx-debian.html;
  8.  
  9.         server_name lobby.tf;
  10.  
  11.         location / {
  12.                 # First attempt to serve request as file, then
  13.                 # as directory, then fall back to displaying a 404.
  14.                 try_files $uri $uri/ =404;
  15.         }
  16.  
  17.         # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  18.         #
  19.         location ~ \.php$ {
  20.         #       include snippets/fastcgi-php.conf;
  21.         #
  22.         #       # With php5-cgi alone:
  23.         #       fastcgi_pass 127.0.0.1:9000;
  24.         #       # With php5-fpm:
  25.                 fastcgi_pass unix:/var/run/php5-fpm.sock;
  26.                 fastcgi_index index.php;
  27.                 include fastcgi_params;
  28.         }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment