Append symbolic link to served media

Posted by Hellnar on Server Fault See other posts from Server Fault or by Hellnar
Published on 2010-06-24T13:21:16Z Indexed on 2010/12/31 22:55 UTC
Read the original article Hit count: 274

Filed under:
|
|
|
|

Hello, I have two folders such as

nonserved/
    folder1/
    folder2/

and a served folder via Apache

media/
    js/
    css/
    img/

In the end, I want to include/append contents of /nonserved to /media so that www.mysite.com/media will be as such:

/media
    /js
    /css
    /img
    /folder1
    /folder2

I am running Ubuntu Server, I am up for either apache config or symbolic link based answer :) Plus nonserved folder is rather dynamic thus manual symbolic linking to each folder is impossible.

© Server Fault or respective owner

Related posts about linux

Related posts about apache