Hello everyone, I wrote a rule for nginx, does not work, gives an error
/var/www/api/api_users/index.php/main/get" failed (20: Not a directory) My config
server { server_name api.auto.as; root /var/www/api/; index index.html index.php; location / { rewrite ^/(.*)\.(.*)$ /api_$1/index.php/main/$2?$query_string break; } location ~* \.php$ { fastcgi_pass unix:/run/php/php7.2-fpm.sock; include fastcgi.conf; } } Request: http://api.auto.as/users.get
Tell me the solution.
~* \.php$- nörbörnën