Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name site.info www.site.info;
- charset off;
- disable_symlinks if_not_owner from=$root_path;
- index index.html index.php;
- root $root_path;
- set $root_path /var/www/server/data/www/site.info;
- error_log /var/www/httpd-logs/site.info.error.log notice;
- include /etc/nginx/vhosts-includes/*.conf;
- client_max_body_size 1g;
- client_body_buffer_size 128k;
- location / {
- try_files $uri $uri/ /index.php?$args;
- rewrite ^([^.\?]*[^/])$ $1/ permanent;
- location ~ [^/]\.ph(p\d*|tml)$ {
- try_files /does_not_exists @php;
- }
- }
- location ~ \.php$ {
- fastcgi_buffers 4 256k;
- fastcgi_busy_buffers_size 256k;
- fastcgi_temp_file_write_size 256k;
- fastcgi_index index.php;
- fastcgi_pass unix:/var/www/php-fpm/server.sock;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $root_path/index.php;
- location ~ [^/]\.ph(p\d*|tml)$ {
- try_files /does_not_exists @php;
- }
- }
- location ~ /\. {
- access_log off;
- log_not_found off;
- location ~ [^/]\.ph(p\d*|tml)$ {
- try_files /does_not_exists @php;
- }
- }
- location @php {
- fastcgi_index index.php;
- fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f webmaster@site.info";
- fastcgi_pass unix:/var/www/php-fpm/server.sock;
- fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
- try_files $uri =404;
- include fastcgi_params;
- }
- ssi on;
- gzip on;
- gzip_comp_level 5;
- gzip_disable "msie6";
- gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
- access_log off ;
- listen IP:80;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement