Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- # server_name 78.155.217.88;
- server_name *.*;
- charset UTF-8;
- index index.php index.html;
- access_log /var/log/nginx/localhost.access.log;
- error_log /var/log/nginx/localhost.error.log notice;
- # set $root_path /var/www/html;
- set $root_path /var/www/html/$host;
- root $root_path;
- location / {
- try_files $uri $uri/ =404;
- }
- location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2?|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf|js|css|mp3|ogg|mpe?g|avi|swf)$ {
- expires max;
- }
- location ~* \.php$ {
- root $root_path;
- proxy_read_timeout 61;
- fastcgi_read_timeout 61;
- try_files $uri $uri/ =404;
- # Ïóòü ê ñîêåòó PHP-FPM
- fastcgi_pass unix:/run/php/php7.0-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- fastcgi_buffer_size 16k;
- fastcgi_buffers 4 16k;
- access_log /var/log/nginx/access.log main;
- }
- listen *:80 default_server;
- }
Add Comment
Please, Sign In to add comment