I am attempting to set up automatic email client configuration (e.g., for K-9 Mail or Thunderbird) by placing a custom config-v1.1.xml file in the /.well-known/autoconfig/mail/ directory of my domain's public_html.
The client correctly requests the file at https://mydomain.com/.well-known/autoconfig/mail/config-v1.1.xml, but it receives a "404 page not found" response. When accessing the file directly in a browser, it returns a 404 Page Not Found error.
After much troubleshooting, I found that DirectAdmin has added a statement causing all my issues.
This prevents me from serving my own custom config-v1.1.xml file.
Is there a recommended way to disable or override this ProxyPassMatch directive globally (or per-domain) in DirectAdmin, so that static files in /.well-known/autoconfig/mail/ can be served directly from the filesystem?
Thank you!!!
DirectAdmin version 1.690
The client correctly requests the file at https://mydomain.com/.well-known/autoconfig/mail/config-v1.1.xml, but it receives a "404 page not found" response. When accessing the file directly in a browser, it returns a 404 Page Not Found error.
After much troubleshooting, I found that DirectAdmin has added a statement causing all my issues.
As a result, requests for the exact filename are intercepted and proxied, leading to the 404 when no internal configuration is available or applicable.ProxyPassMatch "^/\.well-known/autoconfig/mail/config-v1\.1\.xml$" "unix:/usr/local/directadmin/shared/internal.sock|http://localhost"
This prevents me from serving my own custom config-v1.1.xml file.
Is there a recommended way to disable or override this ProxyPassMatch directive globally (or per-domain) in DirectAdmin, so that static files in /.well-known/autoconfig/mail/ can be served directly from the filesystem?
Thank you!!!
DirectAdmin version 1.690