Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
    
Am I understanding correctly, are you looking for what to server the union of the two folders? –  Zoredache Jun 28 '10 at 1:12
add comment

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

share|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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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