SHARE
TWEET

Untitled

a guest Dec 3rd, 2013 114 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.         #listen   80; ## listen for ipv4; this line is default and implied
  3.         #listen   [::]:80 default_server ipv6only=on; ## listen for ipv6
  4.  
  5.         root /var/www/* имя домена *
  6.         index index.php index.html index.htm;
  7.  
  8.         # Make site accessible from http://localhost/
  9.         server_name * скрыл *;
  10.  
  11.         location ~ \.php$ {
  12.                 try_files $uri =404;
  13.                 fastcgi_pass unix:/var/run/php5-fpm.sock;
  14.                 include /etc/nginx/fastcgi_params;
  15.                 fastcgi_index index.php;
  16.                 fastcgi_param SCRIPT_FILENAME $request_filename;
  17.         }
  18.  
  19.         location /doc/ {
  20.                 alias /usr/share/doc/;
  21.                 autoindex on;
  22.                 allow 127.0.0.1;
  23.                 allow ::1;
  24.                 deny all;
  25.         }
  26. }
  27.  
  28. server {
  29.         #listen   80; ## listen for ipv4; this line is default and implied
  30.         #listen   [::]:80 default_server ipv6only=on; ## listen for ipv6
  31.  
  32.         root /var/www/* имя домена *;
  33.         index index.php index.html index.htm;
  34.  
  35.         # Make site accessible from http://localhost/
  36.         server_name *скрыл*;
  37.  
  38.         location ~ \.php$ {
  39.                 try_files $uri =404;
  40.                 fastcgi_pass unix:/var/run/php5-fpm.sock;
  41.                 include /etc/nginx/fastcgi_params;
  42.                 fastcgi_index index.php;
  43.                 fastcgi_param SCRIPT_FILENAME $request_filename;
  44.         }
  45.  
  46.         location /doc/ {
  47.                 alias /usr/share/doc/;
  48.                 autoindex on;
  49.                 allow 127.0.0.1;
  50.                 allow ::1;
  51.                 deny all;
  52.         }
  53. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top