Welcome! Log In Create A New Profile

Advanced

скачивается index.php

July 07, 2014 07:54AM
Я первый раз имею дело с nginx и у меня возникла проблема, index.php скачивается вместо загрузки страницы. Возможно я что-то сделал неккоректно. Вот мои конфиги:
server {
listen 8080;
#root /var/www/dd.test.com/rockmongo;

access_log /var/www/dd.test.com/nginx.access.log;

server_name dd.test.com www.dd.test.com;
root /var/www/dd.test.com/rockmongo;
location / {
index index.html index.php;
}
location ~ \.php$ {
# fastcgi_pass 127.0.0.1:9000;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/dd.test.com/rockmongo$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
}

user www-data;
worker_processes 4;
pid /run/nginx.pid;

events {
worker_connections 768;
# multi_accept on;
}

http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;

sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
server_names_hash_bucket_size 64;
include /etc/nginx/mime.types;
#default_type application/octet-stream;
default_type text/html;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
gzip on;
gzip_disable "msie6";
gzip on;
gzip_disable "msie6";
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
Subject Author Posted

скачивается index.php

irgola July 07, 2014 07:54AM

Re: скачивается index.php

Dmitry July 07, 2014 08:24AM

Re: скачивается index.php

kemko July 07, 2014 08:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 169
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready