Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
Alias /media/folder1/ nonserved/folder1/
Alias /media/folder2/ nonserved/folder2/

<Directory nonserved/>
  Order deny,allow
  Allow from all
</Directory>
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .