Allow Unrestricted Access

Hi,


I would like to change the 'Allow Unrestricted Access' to No for some PDF's so that we can get a human readable URL. I understand the difference in Squid cache and it seems we will accept that Matrix will generate the file rather than Apache.



My question is, once I make the change on the details screen in development the file still resides in the /data/private/assets/pdf_file/xxxx/xxxx/ directory and is still accessible on the frontend with the previous URL of

    http://dev.com.au/__data/assets/pdf_file/xxxx/xxxx/##.pdf
This environment does not use Squid



However with a testing pdf in Prod the file still resides on the file system as in Dev… however the URL of
    http://prod.com.au/__data/assets/pdf_file/xxxx/xxxx/##.pdf
does not work... (this environment uses Squid)

So is there a configuration difference between the two?

nb. both have this same line in httpd.conf:
    Alias "/__data"	"/opt/matrix/mysource_matrix/data/public"

Remember that __data points to data/public, not data/private – files will always exist in data/private. Check to see who owns the file on your dev system in data/public. Again, a permissions error (i.e. if the Squiz Server moved the file, the Web Server may not be able to remove it) could be the cause of the file being left behind.

Ah.. yes, within the private directory the file is owned by nobody!! Another symptom of the same permissions problem… thanks again Avi :slight_smile: