Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
can both dir1 and dir2 have symbolic link called up1 that essentially moves up to lev3 in the directory tree
ln -s ../ up1
I do this because I am hosting multiple websites on a common directory tree and each URL I point to a given directory makes that the base in its own file structure so i create the up1 symbolic link to break out of the directory structure symbolically
In the above example
dir1 and dir2 are two websites that have URLs pointing directly there lev3 contains files that are common to both such as css and js files
I don't see why this wouldn't work.
In the real world it, in fact,does work for the dir1 files but for some reason the files in dir2 which are virtually duplicates of dir1 with only minor changes does like that symbolic link I call up1 which should point to the directory above the base in the tree structure.