Miracle
Проверенные
		- Сообщения
- 452
- Реакции
- 200
- Баллы
- 19,545
Переехал на днях с хостинга на VDS, теперь ломаю голову.
Кто может проверить настройки nginx?
И как решить проблему с постоянными предупреждениями:
В основном все параметры панелька ISPmanager сама прописывает, я дописал лишь Friendly URls
Режим работы PHP: FastCGI (Nginx + PHP-FPM)
nginx:
	
	
	
		
				
			Кто может проверить настройки nginx?
И как решить проблему с постоянными предупреждениями:
*17054 an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/6/34/0000000346 while reading upstreamВ основном все параметры панелька ISPmanager сама прописывает, я дописал лишь Friendly URls
Режим работы PHP: FastCGI (Nginx + PHP-FPM)
nginx:
		Код:
	
	server {
    server_name domain.ru www.domain.ru;
    ssl_certificate "/var/www/httpd-cert/user/domain.ru.crtca";
    ssl_certificate_key "/var/www/httpd-cert/user/domain.ru.key";
    ssl_ciphers EECDH:+AES256:-2DES:RSA+AES:!NULL:!RC1;
    ssl_prefer_server_ciphers on;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    add_header Strict-Transport-Security "max-age=31536000;";
    ssl_dhparam /etc/ssl/certs/dhparam4096.pem;
    charset off;
    index index.php index.html;
    disable_symlinks if_not_owner from=$root_path;
    include /etc/nginx/vhosts-includes/*.conf;
    include /etc/nginx/vhosts-resources/domain.ru/*.conf;
    access_log /var/www/httpd-logs/domain.ru.access.log;
    error_log /var/www/httpd-logs/domain.ru.error.log notice;
    ssi on;
    set $root_path /var/www/user/data/www/domain.ru;
    root $root_path;
    listen [ip]:443 ssl;
    listen ip ssl;
    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;
    location / {
        try_files $uri $uri/ /index.php?$uri&$args;
        index index.php index.html;
        location ~ [^/]\.ph(p\d*|tml)$ {
            try_files /does_not_exists @php;
        }
        location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
            expires 7d;
        }
    }
    location /install/data/ {
        internal;
    }
    location /install/templates/ {
        internal;
    }
    location /internal_data/ {
        internal;
    }
    location ~ \.php$ {
    try_files $uri =404;
    fastcgi_pass    127.0.0.1:9000;
    fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include         fastcgi_params;
    }
    location @php {
        fastcgi_index index.php;
        fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f admin@domain.ru";
        fastcgi_pass unix:/var/www/php-fpm/user.sock;
        fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
        try_files $uri =404;
        include fastcgi_params;
    }
}
			
				Последнее редактирование: 
			
		
	
								
								
									
	
								
							
							 
				 
						
 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		