Sprisa
Active member
Hello, my domain doesnt work on https and http redirects to google.com, my nginx config:
	
	
	
		
				
			
		Code:
	
	server {
    if ($host = <domaini>) {
        return 301 https://$host$request_uri;
    } # managed by Certbot
    listen 80;
    server_name <domaini>;
    return 301 https://$host$request_uri;
}
server {
    listen 443 ssl;
    server_name <domaini>;
    location / {
        try_files $uri $uri/ /xf/index.php?$uri&$args;
        index index.php index.html;
    }
    location /install/data/ {
        internal;
    }
    location /install/templates/ {
        internal;
    }
    location /internal_data/ {
        internal;
    }
    location /library/ { #legacy
        internal;
    }
    location /src/ {
        internal;
    }
    root /var/www/<domaini>;
    location ~ \.php$ {
        try_files $uri =404;
        fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
        fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include         fastcgi_params;
        #include snippets/fastcgi-php.conf;
    }
    add_header X-Frame-Options "SAMEORIGIN";
    ssl_certificate /etc/letsencrypt/live/<domaini>/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/<domaini>/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
} 
 
		
 
 
		 
 
		
 
 
		 
 
		 
 
		