# TRA — Nginx / Apache notes (single Laravel app)

## Apache (cPanel)

Document root = subdomain directory. Root `.htaccess` rewrites to `public/`.

PHP handler: ea-php85.

## Nginx (reference)

```nginx
server {
    listen 443 ssl http2;
    server_name tra.ronnieridge.com;
    root /home/ronnie/public_html/tra.ronnieridge.com/public;
    index index.php;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ \.php$ {
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
        fastcgi_pass unix:/run/php/php-fpm.sock; # adjust
    }

    location ^~ /build/ { access_log off; expires 7d; }
}
```

Website and `/admin` share this one app — no separate SPA/Nuxt vhost.
