AndyCap adlı üyeden alıntı: mesajı görüntüle
tüm sitelerin config düzenlemesini yapan nginx.sh dosyasının çalıştırıldığı bir bölüm var orada. o bölüm sorunsuz geçildi mi?
#!/bin/sh   cat > "/usr/local/nginx/conf/nginx.conf" <<EOF user nobody;
# no need for more workers in the proxy mode worker_processes 1;
error_log /var/log/nginx/error.log; pid /var/run/nginx.pid;
worker_rlimit_nofile 8192;   events { worker_connections 2048; # you
might need to increase this setting for busy servers use epoll; # Linux
kernels 2.4.x change to rtsig }   http { server_names_hash_max_size
8192;   include mime.types; default_type application/octet-stream;
sendfile on; tcp_nopush on; tcp_nodelay on;   keepalive_timeout 10;
gzip on; gzip_min_length 1100; gzip_buffers 4 32k; gzip_types text/plain
application/x-javascript text/xml text/css; ignore_invalid_headers on;
client_header_timeout 3m; client_body_timeout 3m; send_timeout 3m;
connection_pool_size 256; client_header_buffer_size 4k;
large_client_header_buffers 4 32k; request_pool_size 4k; output_buffers
4 32k; postpone_output 1460;   include
"/usr/local/nginx/conf/vhost.conf"; }   EOF   /bin/cp /dev/null
/usr/local/nginx/conf/vhost.conf   cd /var/cpanel/usersfor USER in *;
dofor DOMAIN in `cat $USER | grep ^DNS | cut -d= -f2`; doIP=`cat
$USER|grep ^IP|cut -d= -f2`; ROOT=`grep ^$USER: /etc/passwd|cut -d:
-f6`; echo "Converting $DOMAIN for $USER";   cat >>
"/usr/local/nginx/conf/vhost.conf" <<EOF server { access_log off;
error_log /var/log/nginx/error.log warn; listen 80; server_name $DOMAIN
www.$DOMAIN;   # uncomment location below to make nginx serve static
files instead of Apache # NOTE this will cause issues with bandwidth
accounting as files wont be logged #location ~*
\.(gif|jpg|jpeg|png|wmv|avi|mpg|mpeg|mp4|js|css)$ { # root
$ROOT/public_html; #}   location / { proxy_send_timeout 90;
proxy_read_timeout 90;   proxy_buffer_size 4k; # you can increase
proxy_buffers here to suppress "an upstream response # is buffered to a
temporary file" warning proxy_buffers 16 32k; proxy_busy_buffers_size
64k; proxy_temp_file_write_size 64k;   proxy_connect_timeout 30s;
proxy_redirect http://www.$DOMAIN:81 http://www.$DOMAIN; proxy_redirect
http://$DOMAIN:81 http://$DOMAIN;   proxy_pass http://$IP:81/;
proxy_set_header Host \$host; proxy_set_header X-Real-IP \$remote_addr;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; } } EOF
donedone