Error message?
The server never reach the laravel routes, and redirects to the angular index. Or better said: not found error
Show specific error message, not what you think is the error
[error] 42727#42727: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 18.24.42.1, server: my-domain.com, request: "GET /api/login HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php-fpm.sock:", host: "my-domain.com"
my bad, that's an old log, right now, with that config, as I said, it only gives "404 Not Found" for the API routes
Full log. Copy paste
The error message “primary script unknown” is almost always related to a wrongly set SCRIPT_FILENAME in the nginx fastcgi_param directive. Alternatively incorrect file permissions
have you defined the index, normally index.php also the root, normally absolute path to public folder
did you define the index, normally index.php and the root, normally absolute path to public folder
Обсуждают сегодня