Results 601 to 603 of 603
-
02-26-2012, 03:06 PM #601
Can anyone comment on why PHP files are not working? From the error log:
2012/02/26 08:26:43 [error] 1686#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 173.245.55.113, server: www.********.com, request: "GET /index1.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.********.com"
My /usr/local/nginx/conf/conf.d/virtual.conf looks like:
Code:server { listen 80; server_name localhost; root html; # limit_conn limit_per_ip 16; location / { # Enables directory listings when index file not found # autoindex on; # Shows file listing times as local time # autoindex_localtime on; # Enable for vBulletin usage WITHOUT vbSEO installed # try_files $uri $uri/ /index.php; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } include /usr/local/nginx/conf/staticfiles.conf; include /usr/local/nginx/conf/php.conf; include /usr/local/nginx/conf/drop.conf; } server { listen 80; server_name ********.com; rewrite ^ $scheme://www.********.com$request_uri? permanent; } server { listen 80 backlog=256; server_name www.********.com; # limit_conn limit_per_ip 16; access_log /home/nginx/domains/********.com/log/access.log ; error_log /home/nginx/domains/********.com/log/error.log error; root /home/nginx/domains/********.com/public; location / { # Enables directory listings when index file not found # autoindex on; # Shows file listing times as local time # autoindex_localtime on; # Enable for vBulletin usage WITHOUT vbSEO installed # try_files $uri $uri/ /index.php; } include /usr/local/nginx/conf/staticfiles.conf; include /usr/local/nginx/conf/php.conf; include /usr/local/nginx/conf/drop.conf; }
EDIT:
Here is my nginx.conf
Code:user nginx nginx; worker_processes 1; worker_rlimit_nofile 51200; error_log logs/error.log; pid logs/nginx.pid; events { worker_connections 32768; use epoll; } http { index index.php index.html index.htm; include mime.types; default_type application/octet-stream; sendfile on; tcp_nopush on; tcp_nodelay off; server_tokens off; server_name_in_redirect off; keepalive_timeout 10; gzip on; gzip_vary on; gzip_disable "MSIE [1-6]\."; gzip_static on; gzip_min_length 1100; gzip_buffers 32 8k; gzip_http_version 1.0; gzip_comp_level 1; gzip_proxied any; gzip_types text/plain text/css text/javascript text/xml application/x-javascript application/xml application/xml+rss; client_body_buffer_size 256k; client_body_in_file_only on; client_body_timeout 60s; client_header_buffer_size 256k; ## how long a connection has to complete sending ## it's headers for request to be processed client_header_timeout 20s; client_max_body_size 128m; connection_pool_size 256; directio 4m; ignore_invalid_headers on; large_client_header_buffers 4 256k; output_buffers 4 256k; postpone_output 1460; proxy_temp_path /tmp/nginx_proxy/; request_pool_size 32k; reset_timedout_connection on; send_timeout 60s; log_format bytes_log "$msec $bytes_sent ."; open_file_cache max=5000 inactive=30s; open_file_cache_valid 120s; open_file_cache_min_uses 2; open_file_cache_errors off; open_log_file_cache max=1024 inactive=30s min_uses=2; ## limit number of concurrency connections per ip to 16 ## add to your server {} section the next line ## limit_conn limit_per_ip 16; ## uncomment below line allows 500K sessions # limit_conn_log_level error; # limit_zone limit_per_ip $binary_remote_addr 16m; include /usr/local/nginx/conf/conf.d/*.conf; }
Last edited by MannDude; 02-26-2012 at 03:11 PM.
-
09-20-2012, 01:14 PM #602New Member
- Join Date
- Apr 2012
- Posts
- 4
the centmin.com is down? xD
-
09-20-2012, 02:13 PM #603Junior Guru
- Join Date
- Jul 2001
- Location
- Somewhere you're not
- Posts
- 239
That site appears to be down, but I think eva-2000's centminmod is the most popular fork of the project now. I use it on several servers and highly recommend it.
Similar Threads
-
Perfect CentOs Server Setup (Low Memory)
By skoobi2 in forum VPS HostingReplies: 9Last Post: 07-20-2010, 10:16 AM -
Looking for a sysadmin - install debian/centos + dtc-xen + dtc/images (centos etc)
By Ron D in forum Employment / Job OffersReplies: 2Last Post: 06-12-2009, 11:31 PM -
Script Install service, very low rates!
By Justin in forum Employment / Job OffersReplies: 0Last Post: 12-17-2006, 07:10 PM -
centos:apache,php, yum install or source install?
By cchere in forum Hosting Security and TechnologyReplies: 2Last Post: 08-29-2006, 05:14 PM -
How do I install GD on a default CentOS 4.x install?
By Fabalo.com in forum Hosting Security and TechnologyReplies: 3Last Post: 02-12-2006, 11:43 AM