Здравствуйте.
Имеется archlinux, nginx, php-fpm.
Настройки делал по archwiki и этому мануалу.
Вот что у меня получилось:
/etc/nginx.conf
#user html;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
include /etc/nginx/sites-enabled/*;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
}
/etc/nginx/sites-enabled/mysite.blog
server {
server_name mysite.blog;
include /etc/nginx/conf.d/*;
root /home/user/public_html/mysite.blog/;
server_tokens off;
}
/etc/nginx/conf.d/php.conf
location ~* \.php$ {
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
#fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}Но при открытии, вместо выполнения php-файла, браузер предлагает его скачать...
ЧЯНДТ?