# Aturan bawaan Laravel (mengarahkan semua request web ke index.php)
location / {
    try_files $uri $uri/ /index.php?$query_string;
}

# Custom rule: Memaksa URL berakhiran -css dibaca sebagai stylesheet
location ~* -css$ 
{
    default_type text/css;
    add_header Content-Type text/css;
    try_files $uri $uri/ /index.php?$query_string;
}

# Custom rule: Memaksa URL berakhiran -js dibaca sebagai javascript
location ~* -js$ 
{
    default_type application/javascript;
    add_header Content-Type application/javascript;
    try_files $uri $uri/ /index.php?$query_string;
}

location ~* /jquery\.daterangepicker$ 
{
    default_type text/css;
    add_header Content-Type text/css;
    try_files $uri $uri/ /index.php?$query_string;
}