I am trying to use alias to allow me to view files that aren't in my DocumentRoot directory, but I keep getting errors. Can someone help me with the code? This is on a Mac OS X.
Here is the value of DocumentRoot in httpd.conf:
/Applications/xampp/xamppfiles/htdocs
When I type the url: http://localhost here is the folder where the sample xampp php files are read from:
Applications/xampp/xamppfiles/htdocs/xampp
Here is the working directory I want to be able to read php files from:
/Users/admin/Documents/workspace/petelocal
However, when I add the following lines to httpd.conf I get an error:
alias /petelocal /Users/admin/Documents/workspace/petelocal
<Directory "/Users/admin/Documents/workspace/petelocal">
Allow from all
</Directory>
I think I am trying to use alias in the way it was intended-- to access content that does not live under the DocumentRoot. There is another post on this topic on the forum titled "Where do I put my Site Pages?" by kaththea but I can't find a good explanation to my question there.
Any comments would be greatly appreciated. Thanks!