Page MenuHomePhabricator

Improve routing of "/robots.txt", "/favicon.ico", "/status/", and 404 on custom Sites
ClosedPublic

Authored by epriestley on Mar 11 2021, 9:42 PM.
Tags
None
Referenced Files
F14763525: D21606.diff
Thu, Jan 23, 11:38 AM
Unknown Object (File)
Tue, Jan 21, 7:07 PM
Unknown Object (File)
Tue, Jan 21, 12:46 PM
Unknown Object (File)
Fri, Jan 17, 11:02 PM
Unknown Object (File)
Sun, Jan 12, 10:23 AM
Unknown Object (File)
Sun, Jan 5, 4:53 PM
Unknown Object (File)
Fri, Dec 27, 6:03 PM
Unknown Object (File)
Dec 24 2024, 7:43 PM
Subscribers
None

Details

Summary

Fixes T12919. Fixes T13636. Prior to this change, some well-known resource paths don't route on sites like ResourceSite.

  • /robots.txt: Make it route on ResourceSite and just deny the whole site.
  • /favicon.ico: Make it route on ResourceSite.
  • /status/: Make it route on ResourceSite.
  • 404: Make it render a 404 on ResourceSite.
Test Plan
  • Visited all URIs on ResourceSite, got sensible responses.
  • Visited all URIs on main site.
  • Visited 404 while logged out, got login page.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable