Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1d81778

Browse files
committed
minor#15564 Removing full URL of error page preview (ThomasLandauer)
This PR was merged into the 4.4 branch.Discussion----------Removing full URL of error page previewReason: The actual url (`http://localhost/index.php/` vs. `http://localhost` vs. `http://whatever` vs. ...) depends on the local web server config.If you're using the recommended nginx config athttps://symfony.com/doc/current/setup/web_server_configuration.html#nginx, you'd have to remove `internal;`. I thought about explaining this, but in the end there are probably too many possible server configs to cover them all...Commits-------c910afd Removing full URL of error page preview
2 parentsd1d66a6 +c910afd commit1d81778

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

‎controller/error_pages.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,10 @@ automatically when installing ``symfony/framework-bundle``):
183183
;
184184
};
185185
186-
With this route added, you can use URLs like these to preview the *error* page
187-
for a given status code as HTML or for a given status code and format.
186+
Now you can preview your error page on these two routes:
188187

189-
..code-block::text
190-
191-
http://localhost/index.php/_error/{statusCode}
192-
http://localhost/index.php/_error/{statusCode}.{format}
188+
* `/_error/{statusCode}` for HTML
189+
* `/_error/{statusCode}.{format}` for any other format
193190

194191
.. _overriding-non-html-error-output:
195192

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp