Hi,
I have some files that need to be moved to the same server where matrix is and be accessed as external content from matrix.
where in the server can i save them so i can access them?
I will moved them into matrix later (create proper pages) but at the moment i havent got the time and just need to link them
Thanks
The easiest way is to create another Alias in Apache's httpd.conf for that content:
Alias /static /path/to/static/content
Then the content will be available at http://www.mydomain.com/static
Hope that makes sense.
..and place it above the:
Alias / "/path/to/matrix/core/web/index.php/"
Yes, good point Wombat. It must be above that line.
thanks, ill give it a shot
i had a look at the httpd.conf and couldnt find any line like:
Alias / "/path/to/matrix/core/web/index.php/"
(without the quotes and changing /path/to/matrix to reflect my structure
)
i found others like:
<IfModule mod_alias.c>
Alias /doc/ /usr/share/doc/
</IfModule>
can i place the line anywhere??
thanks
You'll need to check your server configuration and find the Matrix alias lines. If you're using RHEL4, they could be in /etc/httpd/conf.d/matrix.conf. Or, if you're using Debian, they're probably in a file in the /etc/apache/sites-enabled/ directory.
You are able to put the Alias line anywhere, but the effect of that can change depending on where its placed. If you're using VirtualHosts, you'll need to have the line in each virtual host you want the static files to be accessible from.
Has a method been added in Matrix to have it serve static content from a file system within it’s own domain since this last post here? As in, is it possible to set up Matrix to serve a URL from a static directory (i.e. http://ideas.aetn.org/directory/file.html).
[quote]Has a method been added in Matrix to have it serve static content from a file system within it’s own domain since this last post here? As in, is it possible to set up Matrix to serve a URL from a static directory (i.e. http://ideas.aetn.org/directory/file.html).
[right][post=“15668”]<{POST_SNAPBACK}>[/post][/right][/quote]
You don’t need Matrix do this, just setup another alias in Apache.
Above the existing Matrix aliaes, just add:
Alias "/directory" /path/to/static/files
Apache will then serve the static content for you.