Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re[2]: Nginx предлагает сохрани ть php страницу .
Hello 100matolog,
Thursday, December 3, 2009, 5:57:50 PM, you wrote:
> привел конфиг к такому виду
> # cat nginx.conf
> worker_processes 100;
> worker_priority -5;
> worker_rlimit_nofile 51200;
> events {
> worker_connections 51200;
> use kqueue;
> }
> http {
> include mime.types;
> 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"';
> server_names_hash_bucket_size 512;
> sendfile on;
> tcp_nopush on;
> keepalive_timeout 70 30;
> send_timeout 30s;
> reset_timedout_connection on;
> resolver 127.0.0.1;
> resolver_timeout 10s;
> open_file_cache max=100000 inactive=40s;
> open_file_cache_valid 60s;
> open_file_cache_min_uses 2;
> open_file_cache_errors on;
> ########################SERVER_LOCALHOST##############################
> server {
> listen 80;
> server_name fpm.della.ua;
> location / {
> root /usr/local/www/nginx;
> index index.html index.htm index.php;
> access_log /var/log/nginx/localhost-access.log main;
> error_log /var/log/nginx/localhost-error.log error;
> }
>
> #####################################################################
> ################### PHP-FPM ######################
> location ~* \.php$ {
> fastcgi_pass 127.0.0.1:9000;
> fastcgi_index index.php;
> fastcgi_param SCRIPT_FILENAME
> /usr/local/www/nginx-dist/$fastcgi_script_name;
> include fastcgi_params;
> }
> error_page 500 502 503 504 /50x.html;
> location = /50x.html {
> root /usr/local/www/nginx-dist;
> }
> }
> }
> перезапустил nginx - по прежнему предлагает сохранить info.php
> Похожий глюк был в апаче когда не был описан mime type. Возможно ли тут такое
> же?
Может все таки в debug log посмотреть?
error_log /var/log/nginx/localhost-error.log debug;
--
Best regards,
Denis mailto:denis@xxxxxxxxxx
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|