Skip to content

Document/Add config dump static error pages #853

@94noni

Description

@94noni

👋🏻 i am trying to document / add this feature symfony/symfony#58769
ref symfony/symfony-docs#20706 (comment)

but I am failing getting it:

is something as simple as this would work?

	root /app/public
	encode zstd br gzip

	{$CADDY_SERVER_EXTRA_DIRECTIVES}

+    # dump static error pages via bin/console error:dump public/error_pages --force
+    handle_errors {
+   	rewrite * /error_pages/{err.status_code}.html
+       file_server
+    }

	@phpRoute {
		not file {path}
	}
	rewrite @phpRoute index.php

	@frontController path index.php
	php @frontController

	file_server {
		hide *.php
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationDocumentation needs adjustment

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions