Skip to content

access to /.well-known/assetlinks.json causes 500 error on Apache #1097

Description

@motooka

Preamble

Our app operates ID/password authentication and has thousands of Chrome Android clients. It is said that authenticating Chrome on Android clients sometimes causes GoogleAssociationService to access to /.well-known/assetlinks.json, even if the domain is not related to an Android app.

Problem Description

Apache web server returns 500 error for a GET request on /.well-known/assetlinks.json.
It may fire an alert and system administrators will lose their time.

Why 500 Error?

I found an error log entry in Apache error log file

[Mon Jul 13 03:21:13.148109 2026] [core:error] [pid 13] [client 192.168.48.1:59660] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

I think internal redirects would mean rewrite on Apache.
I don't have enough knowledge to describe how the infinite rewrite loop occurs, but placing an empty directory named .well-known resolved the problem, and now Apache returns 404 not found error as expected. This would be a good work-around.

How to Resolve?

I think one of the following would make the app template better.

Environment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions