• 22-08-2013, 19:42:57
    #1
    Kimlik doğrulama veya yönetimden onay bekliyor.
    2 site ekledim. iki sitem de welcome to nginx şeklinde açılıyor.
    Ftp yi görmüyor.
    vhost da ne yapmam gerekiyor ?
  • 22-08-2013, 23:31:31
    #2
    eneess adlı üyeden alıntı: mesajı görüntüle
    2 site ekledim. iki sitem de welcome to nginx şeklinde açılıyor.
    Ftp yi görmüyor.
    vhost da ne yapmam gerekiyor ?
    iki siteyi nasıl eklediniz konfigürasyon dosyası oluşturup nginxe include ettiniz mi ?
  • 23-08-2013, 01:05:17
    #3
    sysadmin adlı üyeden alıntı: mesajı görüntüle
    iki siteyi nasıl eklediniz konfigürasyon dosyası oluşturup nginxe include ettiniz mi ?
    Hocam öncelikle sistemimden ve yaptıklarımdan bahsedeyim.
    ubuntu 10.04 + nginx + ispconfig 3 kurdum.

    Dns Zone digitalocean.com da oluşturduğum ns leri kullandım.

    İspconfig de ekstra Dns Zone vs. olayına hiç girmedim.

    Sonrasında 2 site açtım ispconfig panelinde. Fakat iki sitede de Welcome to nginx sayfası ile karşılaşıyorum.

    Sorunu az çok anladım .Fakat ne yapacağımı bilmiyorum.

    /etc/nginx/sites-available
    /etc/nginx/sites-enabled

    defoult dosyası var. Bu vhost dosyasında default olarak bir root dizin girilmiş. Bu dizinde direk welcome to nginx ? yazısını gösteren index.html dosyası.

    Sorun şu ki ispconfig paneli bu vhost işini otomatik olarak ayarlaması gerekirken bu ayarlamayı yapmıyor.

    Ne yapmam gerekiyor lütfen yardım edin.
  • 23-08-2013, 01:08:51
    #4
    Hocam sites-enabled gibi klasörler uğraşma.direkt nginx.conf dosyasındır server blogu aç domainler için.
  • 23-08-2013, 01:28:03
    #5
    ahmetlutfu adlı üyeden alıntı: mesajı görüntüle
    Hocam sites-enabled gibi klasörler uğraşma.direkt nginx.conf dosyasındır server blogu aç domainler için.
    Hocam yeni yeni olayı çözmeye başladım. Biraz daha ayrıntılı açıklamanız mümkün mü ?

    Şuan da; nginx.conf dosyasında pek bir düzenleme yapmadım. Yapılması gereken ne ? Hatta dosya içeriğini vereyim.

    user www-data;
    worker_processes 4;
    pid /var/run/nginx.pid;
    
    events {
    	worker_connections 768;
    	# multi_accept on;
    }
    
    http {
    
              ## Detect when HTTPS is used
            map $scheme $fastcgi_https {
              default off;
              https on;
            }
       
    	##
    	# Basic Settings
    	##
    
    	sendfile on;
    	tcp_nopush on;
    	tcp_nodelay on;
    	keepalive_timeout 65;
    	types_hash_max_size 2048;
    	# server_tokens off;
    
    	# server_names_hash_bucket_size 64;
    	# server_name_in_redirect off;
    
    	include /etc/nginx/mime.types;
    	default_type application/octet-stream;
    
    	##
    	# Logging Settings
    	##
    
    	access_log /var/log/nginx/access.log;
    	error_log /var/log/nginx/error.log;
    
    	##
    	# Gzip Settings
    	##
    
    	gzip on;
    	gzip_disable "msie6";
    
    	# gzip_vary on;
    	# gzip_proxied any;
    	# gzip_comp_level 6;
    	# gzip_buffers 16 8k;
    	# gzip_http_version 1.1;
    	# gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
    
    	##
    	# nginx-naxsi config
    	##
    	# Uncomment it if you installed nginx-naxsi
    	##
    
    	#include /etc/nginx/naxsi_core.rules;
    
    	##
    	# nginx-passenger config
    	##
    	# Uncomment it if you installed nginx-passenger
    	##
    	
    	#passenger_root /usr;
    	#passenger_ruby /usr/bin/ruby;
    
    	##
    	# Virtual Host Configs
    	##
    
    	include /etc/nginx/conf.d/*.conf;
    	include /etc/nginx/sites-enabled/*;
    }
    
    
    #mail {
    #	# See sample authentication script at:
    #	# http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
    # 
    #	# auth_http localhost/auth.php;
    #	# pop3_capabilities "TOP" "USER";
    #	# imap_capabilities "IMAP4rev1" "UIDPLUS";
    # 
    #	server {
    #		listen     localhost:110;
    #		protocol   pop3;
    #		proxy      on;
    #	}
    # 
    #	server {
    #		listen     localhost:143;
    #		protocol   imap;
    #		proxy      on;
    #	}
    #}
  • 23-08-2013, 09:01:56
    #6
    user www-data;
    worker_processes 4;
    pid /var/run/nginx.pid;
    *
    events {
    worker_connections 1024;
    # multi_accept on;
    }
    *
    *
    http {
    ##
    # Basic Settings
    ##
    *
    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;
    keepalive_timeout 2;
    types_hash_max_size 2048;
    # server_tokens off;
    *
    # server_names_hash_bucket_size 64;
    # server_name_in_redirect off;
    *
    include /etc/nginx/mime.types;
    default_type application/octet-stream;
    *
    #access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;
    access_log off;
    *
    gzip on;
    gzip_disable "msie6";
    gzip_vary on;
    gzip_proxied any;
    gzip_comp_level 6;
    gzip_buffers 16 8k;
    gzip_http_version 1.1;
    gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
    *
    ##
    # Virtual Host Configs
    ##
    index index.php;
    ## See here: http://wiki.nginx.org/WordPress
    *
    server {
    ## Your IP number goes here:
    listen *ip adresin;
    **
    ## Your website name goes here.
    server_name www.domain.com;
    client_max_body_size 100m;
    ## Your only path reference.
    * * * * root /var/www/domain.com/public_html;
    *
    * * * * location = /favicon.ico {
    log_not_found off;
    access_log off;
    }
    *
    * * * * location = /robots.txt {
    allow all;
    log_not_found off;
    access_log off;
    }
    *
    * * * * location / {
    # This is cool because no php is touched for static content
    try_files $uri $uri/ /index.php;
    }
    *
    location ~ \.php$ {
    fastcgi_pass * 127.0.0.1:9000;
    fastcgi_index *index.php;
    fastcgi_param *SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include fastcgi_params; * *
    }
    *
    location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    expires max;
    log_not_found off;
    }
    location /phpmyadmin {
    * * * * * * * *root /usr/share/;
    * * * * * * * *index index.php index.html index.htm;
    * * * * * * * *location ~ ^/phpmyadmin/(.+\.php)$ {
    * * * * * * * * * * * *try_files $uri =404;
    * * * * * * * * * * * *root /usr/share/;
    * * * * * * * * * * * *fastcgi_pass 127.0.0.1:9000;
    * * * * * * * * * * * *fastcgi_index index.php;
    * * * * * * * * * * * *fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    * * * * * * * * * * * *include /etc/nginx/fastcgi_params;
    * * * * * * * *}
    * * * * * * * *location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
    * * * * * * * * * * * *root /usr/share/;
    * * * * * * * *}
    * * * * }
    * * * * location /phpMyAdmin {
    * * * * * * * *rewrite ^/* /phpmyadmin last;
    * * * * }
    *
    }
    server {
    Buraya başka domain için .
    *
    }
  • 23-08-2013, 11:10:50
    #7
    Hocam cok cok tesekkur ederim. Suan mobilim hemen deneyecegim.
    server_name*www.domain.com; kisminda domain yerine ip adresini girecegim.
    Insallah bu sefer sorun cozulmus olur.
    Tekrar tesekkurler ilginiz icin..

    ahmetlutfu adlı üyeden alıntı: mesajı görüntüle
    user www-data;
    worker_processes 4;
    pid /var/run/nginx.pid;
    *
    events {
    worker_connections 1024;
    # multi_accept on;
    }
    *
    *
    http {
    ##
    # Basic Settings
    ##
    *
    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;
    keepalive_timeout 2;
    types_hash_max_size 2048;
    # server_tokens off;
    *
    # server_names_hash_bucket_size 64;
    # server_name_in_redirect off;
    *
    include /etc/nginx/mime.types;
    default_type application/octet-stream;
    *
    #access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;
    access_log off;
    *
    gzip on;
    gzip_disable "msie6";
    gzip_vary on;
    gzip_proxied any;
    gzip_comp_level 6;
    gzip_buffers 16 8k;
    gzip_http_version 1.1;
    gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
    *
    ##
    # Virtual Host Configs
    ##
    index index.php;
    ## See here: http://wiki.nginx.org/WordPress
    *
    server {
    ## Your IP number goes here:
    listen *ip adresin;
    **
    ## Your website name goes here.
    server_name www.domain.com;
    client_max_body_size 100m;
    ## Your only path reference.
    * * * * root /var/www/domain.com/public_html;
    *
    * * * * location = /favicon.ico {
    log_not_found off;
    access_log off;
    }
    *
    * * * * location = /robots.txt {
    allow all;
    log_not_found off;
    access_log off;
    }
    *
    * * * * location / {
    # This is cool because no php is touched for static content
    try_files $uri $uri/ /index.php;
    }
    *
    location ~ \.php$ {
    fastcgi_pass * 127.0.0.1:9000;
    fastcgi_index *index.php;
    fastcgi_param *SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include fastcgi_params; * *
    }
    *
    location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    expires max;
    log_not_found off;
    }
    location /phpmyadmin {
    * * * * * * * *root /usr/share/;
    * * * * * * * *index index.php index.html index.htm;
    * * * * * * * *location ~ ^/phpmyadmin/(.+\.php)$ {
    * * * * * * * * * * * *try_files $uri =404;
    * * * * * * * * * * * *root /usr/share/;
    * * * * * * * * * * * *fastcgi_pass 127.0.0.1:9000;
    * * * * * * * * * * * *fastcgi_index index.php;
    * * * * * * * * * * * *fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    * * * * * * * * * * * *include /etc/nginx/fastcgi_params;
    * * * * * * * *}
    * * * * * * * *location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
    * * * * * * * * * * * *root /usr/share/;
    * * * * * * * *}
    * * * * }
    * * * * location /phpMyAdmin {
    * * * * * * * *rewrite ^/* /phpmyadmin last;
    * * * * }
    *
    }
    server {
    Buraya başka domain için .
    *
    }


    --R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 11:10:50 -->-> Daha önceki mesaj 10:36:13 --

    Hocam verdiğiniz kodlarda alttaki kısım her site için yeniden mi eklenmesi gerekiyor. Mesela aşağıda domain.com şeklinde girmişsiniz. Ve root olarak da farklı bir yol girmişsiniz. isp de daha farklı yol tanımlanıyor sanırım.
    Mesela bir site için root: dizin yolu /var/www/clients/client2/web2/web
    Diğer site için ise root : dizin yolu /var/www/clients/client1/web1/web

    Her site için bu bilgileri ekstra girmemiz gerekiyor değil mi ? Öyleyse nginx baya teferruatlı bir sistemmiş.Bu işlemi ispconfig yapması gerekir diye düşnüüyorum
    Neyse ben hemen bir deneyeyim.Soruma da cevap verirseniz memnun olurum .Bu konu aklıma takıldı.
    server {
    ## Your IP number goes here:
    listen  ip adresin;
      
    ## Your website name goes here.
    server_name www.domain.com;
    client_max_body_size 100m;
    ## Your only path reference.
            root /var/www/domain.com/public_html;
     
            location = /favicon.ico {
    log_not_found off;
    access_log off;
    }
     
            location = /robots.txt {
    allow all;
    log_not_found off;
    access_log off;
    }
     
            location / {
    # This is cool because no php is touched for static content
    try_files $uri $uri/ /index.php;
    }
     
    location ~ \.php$ {
    fastcgi_pass   127.0.0.1:9000;
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include fastcgi_params;    
    }
     
    location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    expires max;
    log_not_found off;
    }
    location /phpmyadmin {
                   root /usr/share/;
                   index index.php index.html index.htm;
                   location ~ ^/phpmyadmin/(.+\.php)$ {
                           try_files $uri =404;
                           root /usr/share/;
                           fastcgi_pass 127.0.0.1:9000;
                           fastcgi_index index.php;
                           fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                           include /etc/nginx/fastcgi_params;
                   }
                   location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
                           root /usr/share/;
                   }
            }
            location /phpMyAdmin {
                   rewrite ^/* /phpmyadmin last;
            }
     
    }
  • 24-08-2013, 18:07:21
    #8
    site yüklü server dinlenme halinde bile diyebiliriz. Fakat server 450-460 mb ram yiyor.
    Ram zaten 512 mb var.

    nginx yüklü ve panel de yok.. Nerde hata olabilir. ?
  • 24-08-2013, 18:21:48
    #9
    Ubuntu biraz fazla ram yer.debian kullanırsan 100 mb ram tasarruf edersin.