Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

TNT Search does not work in either standard GRAV installation

Started by Vagner de Brito 9 years ago · 4 replies · 1135 views
9 years ago

After dozens of tests and for 3 weeks I still can not make TNT Search work in GRAV.

Please ask someone to provide a few minutes to help me with this, I'm sure it can be something easily solved by someone who knows the structure.

Follows the site with the basic installation of GRAV and TNT Search
http://dev.animesonline.top/search

My server is NGINX
Apache works perfectly

Follow the nginx settings in my panel
server {
listen %ip%:%web_port%;
server_name %domain_idn% %alias_idn%;
root %docroot%;
index index.php index.html index.htm;
access_log /var/log/nginx/domains/%domain%.log combined;
access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error;

TXT
location / {
    try_files $uri $uri/ /index.php?page=$request_uri;

    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    %backend_lsnr%;
        fastcgi_index   index.php;
        include         /etc/nginx/fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
}

error_page  403 /error/404.html;
error_page  404 /error/404.html;
error_page  500 502 503 504 /error/50x.html;

location /error/ {
    alias   %home%/%user%/web/%domain%/document_errors/;
}

location ~* "/\.(htaccess|htpasswd)$" {
    deny    all;
    return  404;
}

location /vstats/ {
    alias   %home%/%user%/web/%domain%/stats/;
    include %home%/%user%/web/%domain%/stats/auth.conf*;
}

include     /etc/nginx/conf.d/phpmyadmin.inc*;
include     /etc/nginx/conf.d/phppgadmin.inc*;
include     /etc/nginx/conf.d/webmail.inc*;

include     %home%/%user%/conf/web/nginx.%domain%.conf*;

}

server {
listen %ip%:%web_port%;
server_name %domain_idn% %alias_idn%;
location / {
rewrite ^(.) https://%domain_idn%$1 permanent;
}
include %home%/%user%/conf/web/
nginx.%domain_idn%.conf_letsencrypt;
}

last edited 09/26/17 by Vagner de Brito
9 years ago

Did you make TNT index your pages?

9 years ago

@vbrito:
http://dev.animesonline.top/search

Hello MakaryGo, this is already my third attempt, there are two other sites where TNT does not work, I have already made all basic settings.

Animes Online TOP

Clearly there is a problem because the server is Nginx, because in the localhost that is apache it works.

9 years ago

It works just fine on my Nginx instance, so it has to be config-related. I'll compare my config to yours above and let you know what I'll find 🙂

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Rene, 1 week ago
2 43 1 week ago
Plugins · by Xavier, 4 weeks ago
2 53 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1179 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 47 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 72 2 months ago