Hi,
I’ve a xml file that’s needed to be reachable from my web root like this:
http://my.webpage.com/file.xml
Is it possible to do this? I’ve created an file asset direct under my root but its not reachable
If you're using v3.6, set "Allow Unrestricted Access" to No. This will prevent Matrix from moving the file into the /__data location, which means it will always be served using the friendly Matrix URL, regardless of status or permission.
Thanks, that fixed it!
Keep in mind that this will have a performance impact: Unrestricted Access means that Apache serves the file directly. Without that, Matrix has to serve the file.
For files like robots.txt or favicon.ico, which get hit over and over again, it may be worthwhile putting in an Apache Alias particularly for that file: You will lose the ability to manage the file in Matrix, but your performance on serving the file would be significantly higher.
[quote]Keep in mind that this will have a performance impact: Unrestricted Access means that Apache serves the file directly. Without that, Matrix has to serve the file.
For files like robots.txt or favicon.ico, which get hit over and over again, it may be worthwhile putting in an Apache Alias particularly for that file: You will lose the ability to manage the file in Matrix, but your performance on serving the file would be significantly higher.
[right][post=“7520”]<{POST_SNAPBACK}>[/post][/right][/quote]
Is this the way you would preserve a file asset’s lineage too? I’m trying to display the lineage of some Word docs (live, public) in a search results page (the file is linked under a Site asset), but get a MySource warning:
Unable to find an lineage for the URL “foo.net/__data/assets/word_doc/1234/Document.doc”
File assets when Unrestricted no longer have a lineage. I usually recommend customising the File bodycopy to suppress the %asset_lineage% tag instead.