Page 1 of 1

I can't access to my site by 80 port

Posted: Wed Apr 01, 2020 12:13 pm
by SanTi
I use Centos 7 + Nginx + Php-fpm + mysql and My vebsite's letsencrypt certicate has expired and vesta removed all nginx configuration and created default 80 port's config. Also I cant renevv certifacates of any domain in server.
Still there are nginx.server.erasmusplus.club.conf_letsencrypt and snginx.server.erasmusplus.club.conf_letsencrypt in conf folder Image

There is one nginx conf file and it is open for 80 port. 443 port is not ritten and active but I get blank error vhen I try to access to site (http://server.erasmusplus.club). vhy it redirect me to https ?

Code: Select all

server {
    listen      x.x.x.x:80;
    server_name server.erasmusplus.club ;
    root        /home/x/web/server.erasmusplus.club/public_html;
    index       index.php index.html index.htm;
    access_log  /var/log/nginx/domains/server.erasmusplus.club.log combined;
    access_log  /var/log/nginx/domains/server.erasmusplus.club.bytes bytes;
    error_log   /var/log/nginx/domains/server.erasmusplus.club.error.log error;

    location / {

        location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
            expires     max;
        }

        location ~ [^/]\.php(/|$) {
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            if (!-f $document_root$fastcgi_script_name) {
                return  404;
            }

            fastcgi_pass    127.0.0.1:9001;
            fastcgi_index   index.php;
            include         /etc/nginx/fastcgi_params;
        }
    }
    ....
    ..
    .