Static html website is processed by apache2

Hello all

I had a website on wp with php-fpm and today i migrated to full static html website

Still see logs of requests in /var/log/apache2/domains/site.com.log and seems my rules in stpl template for rewrite does not work because of that. Also my .htaccess does not work.

my rewrite rules in nginx:

location ~ ^(?<basepath>.*/)index\.html$
{
return 301 $basepath$is_args$args;
}

What can I check?

ok i 've solved my issue by removing htm and html extensions from nginx but still not clear why apache serves my html website

If you use nginx + apache2 on hestia, the shell var WEB_SYSTEM has the value ‘apache2’ (defined in /usr/loca/hestia/conf/hestia.conf).
By default the nginx logfiles are being written to /var/log/%web_system%/domains/%domain%.log
Which means that if you are using nginx + apache2 the logs are still in /var/log/apache2/domains/… even when they are written by nginx

why do i have lots of logs related to my other websites in /var/log/nginx/domains/ ?

but they are static html website however i use nginx + apache build

I don’t know, check your nginx virtual hosts configurations if you want to know.