Created
March 21, 2017 14:37
-
-
Save ivanscm/e499d60a64426f0537b0f08e8509b8fc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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