Apache config

Howdy,


I'm not sure if this is possible but I'm sure it would be. Though at the moment I'm not too sure how to do it.





I would like some files specifically media files o be server via apache directly instead of going through matrix.



I guess there a a number of steps.




  1. set up an area where all media files are ad
  2. change the allow unrestricted access
  3. add a line similar to this to apache config

    Alias “/media” /var/www/media





    I’m assuming that by doing this that any call to a file with the url http://www.someplace.com/media/vid.mov would be served directly via apache and not via matrix through to apache?



    Or is my thinking incorrect here?



    Are there any other implications then if I refer to the media file via its asset id in any new pages?



    thanks



    Gene

[quote]I'm not sure if this is possible but I'm sure it would be. Though at the moment I'm not too sure how to do it.
I would like some files specifically media files o be server via apache directly instead of going through matrix.[/quote]



Matrix already does this through the /__data alias: Once a file has Public Read permission assigned and is made Live, it is served directly by Apache using a /__data URL.

Looks a bit ugly though __data :slight_smile:


will that speed things up any with file serving, or is there a better way to do that?


Files are natively served by Apache so that's about as fast as you can get. There are mechanisms in Matrix that allow for the delivery of files using another webserver, but this is advanced configuration that is best discussed with Squiz Support before implementation.