<div dir="ltr">php-fpm поднят?<div>сокет <span style="font-family:arial,sans-serif;font-size:13px">/var/run/php5-fpm.sock </span>корректен?</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 7, 2014 at 3:54 PM, irgola <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Я первый раз имею дело с nginx и у меня возникла проблема, index.php<br>
скачивается вместо загрузки страницы. Возможно я что-то сделал неккоректно.<br>
Вот мои конфиги:<br>
server {<br>
listen 8080;<br>
#root /var/www/<a href="http://dd.test.com/rockmongo" target="_blank">dd.test.com/rockmongo</a>;<br>
<br>
access_log /var/www/<a href="http://dd.test.com/nginx.access.log" target="_blank">dd.test.com/nginx.access.log</a>;<br>
<br>
server_name <a href="http://dd.test.com" target="_blank">dd.test.com</a> <a href="http://www.dd.test.com" target="_blank">www.dd.test.com</a>;<br>
root /var/www/<a href="http://dd.test.com/rockmongo" target="_blank">dd.test.com/rockmongo</a>;<br>
location / {<br>
index index.html index.php;<br>
}<br>
location ~ \.php$ {<br>
# fastcgi_pass <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;<br>
fastcgi_pass unix:/var/run/php5-fpm.sock;<br>
fastcgi_index index.php;<br>
fastcgi_param SCRIPT_FILENAME<br>
/var/www/<a href="http://dd.test.com/rockmongo$fastcgi_script_name" target="_blank">dd.test.com/rockmongo$fastcgi_script_name</a>;<br>
include /etc/nginx/fastcgi_params;<br>
}<br>
}<br>
<br>
user www-data;<br>
worker_processes 4;<br>
pid /run/nginx.pid;<br>
<br>
events {<br>
worker_connections 768;<br>
# multi_accept on;<br>
}<br>
<br>
http {<br>
sendfile on;<br>
tcp_nopush on;<br>
tcp_nodelay on;<br>
keepalive_timeout 65;<br>
types_hash_max_size 2048;<br>
<br>
sendfile on;<br>
tcp_nopush on;<br>
tcp_nodelay on;<br>
keepalive_timeout 65;<br>
types_hash_max_size 2048;<br>
server_names_hash_bucket_size 64;<br>
include /etc/nginx/mime.types;<br>
#default_type application/octet-stream;<br>
default_type text/html;<br>
access_log /var/log/nginx/access.log;<br>
error_log /var/log/nginx/error.log;<br>
gzip on;<br>
gzip_disable "msie6";<br>
gzip on;<br>
gzip_disable "msie6";<br>
include /etc/nginx/conf.d/*.conf;<br>
include /etc/nginx/sites-enabled/*;<br>
}<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?21,251494,251494#msg-251494" target="_blank">http://forum.nginx.org/read.php?21,251494,251494#msg-251494</a><br>
<br>
_______________________________________________<br>
nginx-ru mailing list<br>
<a href="mailto:nginx-ru@nginx.org">nginx-ru@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-ru" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-ru</a></blockquote></div><br><br clear="all"><div><br></div>-- <br>Dmitry Goryainov<br><br>
</div>