Hello!
Two phalcons are installed on the website:
- /home/srv/http/site.com
- /home/srv/http/site.com/admin
Part of nginx.conf:
server {
listen 80;
server_name site.com;
root /home/srv/http/site.com/public;
index index.php;
access_log off;
error_log /var/log/nginx/site.com_error.log;
location / {
root /home/srv/http/site.com/public;
try_files $uri $uri/ /index.php?_url=$uri&$args;
}
location /admin/ {
root /home/srv/http/site.com/admin/public;
try_files $uri $uri/ /admin/public/index.php;
}
include /etc/nginx/php.conf;
}
Previously, the apache was installed. And website and admin folder worked.
And now I replaced apache by nginx.
Website https://site.com work. But https://site.com/admin does not work, error 404.
Tell me please, what I'm doing wrong?