Skip to content

Instantly share code, notes, and snippets.

@ivanscm
Created March 21, 2017 14:37
Show Gist options
  • Select an option

  • Save ivanscm/e499d60a64426f0537b0f08e8509b8fc to your computer and use it in GitHub Desktop.

Select an option

Save ivanscm/e499d60a64426f0537b0f08e8509b8fc to your computer and use it in GitHub Desktop.
server{
listen 80;
listen 443 ssl;
server_name toyota42.ru;
access_log /var/log/nginx/toyota42.ru.access.log;
error_log /var/log/nginx/toyota42.ru.error.log;
# корневая директория
root /var/www/toyota/www;
index index.php index.html;
try_files $uri $uri/ /index.php?$args;
location ~ \.php$ {
try_files $uri @missing;
include fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location @missing {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
include fastcgi_params;
}
location ~ /.well-known {
allow all;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment