Configure Nette application with NGINX in context

22 days ago

samuelmesa
Member | 1
+
0
-

Hello friends, I have tried to make all possible configurations to deploy the nette application in a NGINX context, but without good results. My configuration is as follows:

nginx.conf

location / {
try_files $uri $uri/ =404;
}

location /visorgeo/catalogo {
alias /usr/share/nginx/html/visorgeo/micka;
location ~ \.php?$ {
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;fastcgi_param SCRIPT_FILENAME $document_root/index.php;
include fastcgi_params;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
 }
}

The problem is that it does not redirect correctly, always gives me a page of not found, even though it displays correctly the index.php.

I appreciate any help.

Last edited by samuelmesa (2017-09-28 05:35)