root@amber-server:/var/www/argus-api# curl -i https://api.jarksolution.com/api/health -H "Origin: https://argus.jarksolution.com" HTTP/1.1 404 Not Found Server: nginx/1.18.0 (Ubuntu) Content-Type: text/html; charset=UTF-8 Transfer-Encoding: chunked Connection: keep-alive Cache-Control: no-cache, private date: Sun, 11 Jan 2026 05:23:27 GMT Vary: Origin server { server_name api.jarksolution.com; root /var/www/argus-api/public; index index.php; access_log /var/log/nginx/api.jarksolution.com.access.log; error_log /var/log/nginx/api.jarksolution.com.error.log; # ---------------------------- # CORS helper (allowed origin) # ---------------------------- set $cors_origin ""; if ($http_origin = "https://argus.jarksolution.com") { set $cors_origin $http_origin; } # ---------------------------- # Preflight (OPTIONS) # ---------------------------- if ($request_method = OPTIONS) { add_header 'Access-Control-Allow-Origin' $cors_origin always; add_header 'Access-Control-Allow-Credentials' 'true' always; add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, PATCH, DELETE, OPTIONS' always; add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type, Accept, Origin, X-Requested-With' always; add_header 'Access-Control-Max-Age' 86400 always; add_header 'Content-Length' 0; add_header 'Content-Type' 'text/plain; charset=utf-8'; return 204; } # ---------------------------- # Laravel routes # ---------------------------- location / { # CORS headers on normal responses add_header 'Access-Control-Allow-Origin' $cors_origin always; add_header 'Access-Control-Allow-Credentials' 'true' always; add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, PATCH, DELETE, OPTIONS' always; add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type, Accept, Origin, X-Requested-With' always; try_files $uri $uri/ /index.php?$query_string; } # ---------------------------- # PHP-FPM # ---------------------------- location ~ \.php$ { # CORS headers also here (important) add_header 'Access-Control-Allow-Origin' $cors_origin always; add_header 'Access-Control-Allow-Credentials' 'true' always; add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, PATCH, DELETE, OPTIONS' always; add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type, Accept, Origin, X-Requested-With' always; include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php8.1-fpm.sock; } location ~ /\.ht { deny all; } listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/api.jarksolution.com/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/api.jarksolution.com/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot } server { listen 80; server_name api.jarksolution.com; return 301 https://$host$request_uri; } Not Found
404
Not Found
root@amber-server:/var/www/argus-api# Laravel
 
Laravel v10.50.0 (PHP v8.1.2-1ubuntu2.23)