This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

nghialt
nghialt

In /etc/nginx/site-available and site-enabled, I had a new config. When I access to my site, it just shows "download window" (not run index.php in project). Mysite.conf in site-available

server {
    listen 80;
    listen [::]:80;
    server_name mysite.com;
    root /var/www/html/octobercms;
    index index.php index.html;

    location ~ \.php$ {
    try_files $uri =404;
    fastcgi_split_path_info  ^(.+\.php)(/.+)$;
    fastcgi_index index.php;
    include fastcgi_params;
    fastcgi_param PATH_INFO $fastcgi_path_info;
    fastcgi_buffers 16 16k;
    fastcgi_buffer_size 32k;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_read_timeout 600;
    }
    location ~ /\.ht {
        deny all;
    }
    location /.well-known/acme-challenge/ {
        root /var/www/letsencrypt/;
        log_not_found off;
    }

    error_log /var/log/nginx/octobercms_error.log;
    access_log /var/log/nginx/octobercms_access.log;
}

Please help to check this Mysite.conf. Thank you!

Last updated

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.