Развернул сайт на новый сервер NGINX + php-fpm
приложение перестало работать, подскажите что нужно в конфиге прописать для нормальной работы
сайт
titan52.ru
Вот мой конфиг
server {
listen 185.63.191.40:443;
server_name titan52.ru www.titan52.ru;
root /home/macsol/web/titan52.ru/public_html;
index index.php index.html index.htm;
access_log /var/log/nginx/domains/titan52.ru.log combined;
access_log /var/log/nginx/domains/titan52.ru.bytes bytes;
error_log /var/log/nginx/domains/titan52.ru.error.log error;
ssl on;
ssl_certificate /home/macsol/conf/web/ssl.titan52.ru.pem;
ssl_certificate_key /home/macsol/conf/web/ssl.titan52.ru.key;
try_files $uri $uri/ /index.php?$query_string;
location /index.php {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php-titan52.ru.sock;
}
location /api.php {
fastcgi_split_path_info ^(.+\.php)(.*)$;
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php-titan52.ru.sock;
}
location ~ /(oauth.php|link.php|payments.php) {
try_files $uri $uri/ /index.php?$query_string;
}
location ^~ /wa-data/protected/ {
internal;
}
location ~ /wa-content {
allow all;
}
location ^~ /(wa-apps|wa-plugins|wa-system|wa-widgets)/.*/(lib|locale|templates)/ {
deny all;
}
location ~* ^/wa-(cache|config|installer|log|system)/ {
return 403;
}
location ~* ^/wa-data/public/contacts/photos/[0-9]+/ {
root /home/macsol/web/titan52.ru/public_html;
access_log off;
expires 30d;
error_page 404 = @contacts_thumb;
}
location @contacts_thumb {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php-titan52.ru.sock;
fastcgi_param SCRIPT_NAME /wa-data/public/contacts/photos/thumb.php;
fastcgi_param SCRIPT_FILENAME $document_root/wa-data/public/contacts/photos/thumb.php;
}
# photos app
location ~* ^/wa-data/public/photos/[0-9]+/ {
access_log off;
expires 30d;
error_page 404 = @photos_thumb;
}
location @photos_thumb {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php-titan52.ru.sock;
fastcgi_param SCRIPT_NAME /wa-data/public/photos/thumb.php;
fastcgi_param SCRIPT_FILENAME $document_root/wa-data/public/photos/thumb.php;
}
# end photos app
# shop app
location ~* ^/wa-data/public/shop/products/[0-9]+/ {
access_log off;
expires 30d;
error_page 404 = @shop_thumb;
}
location @shop_thumb {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php-titan52.ru.sock;
fastcgi_param SCRIPT_NAME /wa-data/public/shop/products/thumb.php;
fastcgi_param SCRIPT_FILENAME $document_root/wa-data/public/shop/products/thumb.php;
}
location ~* ^/wa-data/public/shop/promos/[0-9]+ {
access_log off;
expires 30d;
error_page 404 = @shop_promo;
}
location @shop_promo {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php-titan52.ru.sock;
fastcgi_param SCRIPT_NAME /wa-data/public/shop/promos/thumb.php;
fastcgi_param SCRIPT_FILENAME $document_root/wa-data/public/shop/promos/thumb.php;
}
# end shop app
# mailer app
location ~* ^/wa-data/public/mailer/files/[0-9]+/ {
access_log off;
error_page 404 = @mailer_file;
}
location @mailer_file {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php-titan52.ru.sock;
fastcgi_param SCRIPT_NAME /wa-data/public/mailer/files/file.php;
fastcgi_param SCRIPT_FILENAME $document_root/wa-data/public/mailer/files/file.php;
}
# end mailer app
location ~* ^.+\.(jpg|jpeg|gif|png|js|css)$ {
access_log off;
expires 30d;
}
include /home/macsol/conf/web/snginx.titan52.ru.conf*;
}