Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Side-walk's avatar

Laravel forge 'default'/403 with SSL?

On Laravel Forge I'm trying to get a 404 or 403 forbidden displayed on my server when accessing a site not found. The server is behind Cloudflare.

I'm not allowed to enable SSL for the default site (I guess its because SSL certificates needs an actual domain attached). The result is that whenever I visit a site which does not exist but points to the server (wildcard or dangling DNS) I get displayed the FIRST site in the server configuration, but the URL is not actually redirected to the given site.

I understand it's because I'm missing a default_server when accessing via SSL, but am unsure what to do except fix my DNS (so wildcard DNS only points to wildcard enabled forge sites, and there is NO dangling entries).

Is it even possible to handle this with SSL?

0 likes
0 replies

Please or to participate in this conversation.