Добрый день.
Конфиг следующий:
server {
listen 80;
server_name site.com www.site.com;
root /var/www/wordpress;
index index.php;
location / {
try_files $uri $uri/ /index.php?q=$uri&$args;
}
location ^~ /v12 {
index data-recovery.html;
fastcgi_pass 127.0.0.1:9000;
}
location ~* ^.+.(js|css|png|jpg|jpeg|gif|ico)$ {
access_log off;
location ~ \.(php)$ {
# fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param DOCUMENT_ROOT /www.site.com;
fastcgi_param SCRIPT_FILENAME /www.site.com$fastcgi_script_name;
fastcgi_param PATH_TRANSLATED /www.site.com$fastcgi_script_name;
include fastcgi_params;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_intercept_errors on;
fastcgi_ignore_client_abort off;
fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
## Disable viewing .htaccess & .htpassword
location ~ /\.ht {
deny all;
}
location /phpmyadmin/ {
rewrite ^(.*)
https://$server_name$1 permanent;
}
}
Так вот в директории v12 лежит html с вкраплением php. Сейчас пока не отрабатывает в таком варианте.