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.

link|improve this question

33% accept rate
Am I understanding correctly, are you looking for what to server the union of the two folders? – Zoredache Jun 28 '10 at 1:12
feedback

1 Answer

symlink

ln -s /full/path/to/nonserved/ /full/path/to/media/nonserved

That will grab anything in nonserved

or apache config

Alias /media/nonserved "full/path/to/nonserved/"

That assumes you want to serv like

/media/nonserved/folder1/file.jog

link|improve this answer
thanks but this doesnt work as it adds as /media/nonserved/folder1/file.jpg – Hellnar Jun 24 '10 at 13:35
ok I gave you the basics.. just make the changed.. but I edied it – Mike Jun 24 '10 at 13:39
thanks but it is not helping alot as the nonserved folder is dynamic thus manual linking is not possible. – Hellnar Jun 24 '10 at 13:57
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.