• 06-10-2023, 01:26:41
    #1
    Merhabalar. Centos 7 üzerinde nginx conf dosyası düzenliyorum ama https://iport/path sanal dizini bir türlü görmüyor. Sadece http://iport/path şeklinde girişte görüyor https://subdomain.xxx.com.tr/path şeklinde girişte görmüyor. Conf dosyamın neresi hatalı tam olarak?

    Hata kodu:
    2023/10/05 22:17:27 [error] 18849#18849: *2 openat() "/usr/share/kiwiirc/webirc/kiwiirc" failed (2: No such file or directory), client: xxx.196.194.113, server: subdomain.xxx.com.tr, request: "GET /webirc/kiwiirc HTTP/1.1", host: "subdomain.xxx.com.tr"
    nginx vhost conf dosyası:
    server {
        listen 80;
        server_name subdomain.xxx.com.tr ;
    
        location / {
            proxy_pass http://127.0.0.1:8000;
         return 301 https://$server_name$request_uri;
        }   
    }
    
    server {
        listen 443 ssl;
        listen [::]:443 ssl;
        
        server_name subdomain.xxx.com.tr ;
        
        ssl_certificate /etc/letsencrypt/live/subdomain.xxx.com.tr /fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/subdomain.xxx.com.tr /privkey.pem;
        
        location / {
            index index.html;
            
            # Path to kiwiirc client files
            root /usr/share/kiwiirc/;
        }
        
        location /webirc/ {
            # Forward incoming requests to local webircgateway socket
            proxy_pass http://127.0.0.1:8000/webirc/;
    
            # Set http version and headers
            proxy_http_version 1.1;
            
            # Add X-Forwarded-* headers
            proxy_set_header X-Forwarded-Host   $host;
            proxy_set_header X-Forwarded-Proto  $scheme;
            proxy_set_header X-Forwarded-For    $remote_addr;
    
            # Allow upgrades to websockets
            proxy_set_header Upgrade     $http_upgrade;
            proxy_set_header Connection  "upgrade";
    
        }
        
        location /files/ {
            # Forward incoming requests to local fileuploader instance
            proxy_pass http://127.0.0.1:8000/files/;
    
            # Disable request and response buffering
            proxy_request_buffering  off;
            proxy_buffering          off;
            proxy_http_version       1.1;
    
            # Add X-Forwarded-* headers
            proxy_set_header X-Forwarded-Host   $host;
            proxy_set_header X-Forwarded-Proto  $scheme;
            proxy_set_header X-Forwarded-For    $remote_addr;
    
            # Allow fileuploader to control the max size
            client_max_body_size         0;
        }
    }
  • 06-10-2023, 01:40:42
    #2
    Subdomain dns ayarlarından A kaydı eklediniz mi hocam?
  • 06-10-2023, 01:57:17
    #3
    adwerd0z1 adlı üyeden alıntı: mesajı görüntüle
    Subdomain dns ayarlarından A kaydı eklediniz mi hocam?
    ekledim dns görüyor sıkıntı yok ama ERR_SSL_PROTOCOL_ERROR ssl ile açmaya çalılşınca browser böyle bir hata veriyor. Siteyi açmaya çalışınca da üst mesajımdaki gibi bir hata çıktısı var. amacım http-ip-port/dizin şeklinde çalışmakta olan uygulamayı httpS-subdomain şeklinde çalıştırmak. http-subdomain-port-dizin şeklinde de çalışıyor ama port ve dizin yönlendirmesi yapıp httpS geçince sorun çıkıyor ngix conf lar ile alakalı olduğunu düşündüm.
  • 06-10-2023, 02:09:21
    #4
    "webirc/kiwiirc" bu dizin yok demiş zaten hata kodunda, kontrolünü sağlar mısın tekrar
  • 06-10-2023, 08:43:21
    #5
    YaserMazlum adlı üyeden alıntı: mesajı görüntüle
    "webirc/kiwiirc" bu dizin yok demiş zaten hata kodunda, kontrolünü sağlar mısın tekrar

    o dizin var ama sanal dizin. bkz: http://irc.beklenti.com.tr:8000/webirc/kiwiirc/ bu dizin var ama ssl yüzünden hatada "/usr/share/kiwiirc/webirc/kiwiirc" şeklinde algılıyor algılamasını istediğim "domainadı.port//webirc/kiwiirc"