• 08-10-2021, 22:25:23
    #1
    S.M. Mali Müşavir
    Ubuntu 20.04 sunucuda Nginx kurulu. Wordpress'i kurdum. Başta sorun yoktu. Admin panele girdim. Bağlantıları https:// olarak değiştirdim. Siteye sorunsuz erişebilirken admin panele giremiyorum.
    Nasıl düzeltebilirim?

    Nginx ayar dosyası:
    server {
            listen 80;
            listen [::]:80;
            root /var/www/wordpress;
            index  index.php index.html index.htm;
            server_name blog.durpoy.com;
    
            error_log /var/log/nginx/durpoy.com_error.log;
            access_log /var/log/nginx/durpoy.com_access.log;
            
            client_max_body_size 100M;
            location / {
                    try_files $uri $uri/ /index.php?$args;
            }
            location ~ \.php$ {
                    include snippets/fastcgi-php.conf;
                    fastcgi_pass unix:/run/php/php8.0-fpm.sock;
                    fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
            }
    
            location = /favicon.ico {
                    log_not_found off;
                    access_log off;
            }
    
            location = /robots.txt {
                    allow all;
                    log_not_found off;
                    access_log off;
            }
    
            location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
                    expires max;
                    log_not_found off;
            }
    }
  • 08-10-2021, 22:27:50
    #2
    S.M. Mali Müşavir
    Not : SSL'i cloudflare'dan kullanıyorum. HTTPS:// yönlendirmesi de cloudflare tarafında.