I have a problem in the sense that on nginx I want to connect laravel. That is, that the address was in the address http://latina.site/admin . And now the index address opens at this address http://latina.site/admin/public/index.php and suppose if I want to go to the address http://latina.site/admin/public/index.php/login then I get a 404 error. How to configure nginx and laravel. Here is my nginx code
server { listen 80; root /home/ruslan/Разработка/latina; index index.html index.htm index.php; server_name latina.site www.latina.site default_server; location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; } location /admin { alias /home/ruslan/Разработка/latina/admin/public; index index.html index.htm index.php; } location / { try_files $uri $uri/ /index.php?$query_string; } }