Hello, guys.
EE => php7
NOTE: I’m using HTTPS
ssl on;
listen 443 ssl http2;
listen [::]:443 ssl http2;
I have tried to use this @ /var/www/my.domain.tld/conf/nginx/pagekit.conf:
rewrite ^/index\.php/?(.*)$ /$1;
try_files $uri @index;
location ~* \.(db|ht)$ {
deny all;
}
location ~* \.(?:ico|css|js|gif|jpe?g|png|ttf|woff)\$ {
access_log off;
expires 30d;
add_header Pragma public;
add_header Cache-Control "public, mustrevalidate, proxy-revalidate";
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_param HTTP_MOD_REWRITE On;
}
What I’m doing wrong?
The original htaccess from Pagekit @ Github
Solutions without EasyEngine =>
solution one
and solution two.
None works fine here. The Pagekit was installed, but the /index.php/
still there. Can you help me, please?
Thank you.