Web access to Linux directory outside public_html?
Posted on 2004-09-07
I want to have a web user open an index.html file that is in a directory outside of the root directory for the website. (which I cannot move and do not what to copy)
For example, they would go to www.mydomain.com/stats (which would take them to /home/acctname/public_html) where they would find a symbolic link 'stats' pointing to /home/acctname/tmp/somedir where they would execute the index.html file there.
I symbolic link seems to work because I can 'cd stats' from /home/acctname/public_html and I change to the /home/acctname/tmp/somedir directory.
I also did a chmod a+rwx on the tmp directory and the index.html file there.
The problem is that I get a 404 error when going to www.mydomain.com/stats