Forum Moderators: phranque
This doesn't work when I try to directly put it there like this:
<VirtualHost XXXXXXXXX>
ServerAlias files.domain.tld
DocumentRoot /path/to/something/outside/webroot
</VirtualHost>
However, if I make it look like this:
<VirtualHost XXXXXXXXX>
ServerAlias files.domain.tld
DocumentRoot /path/to/webroot/files
</VirtualHost>
Where /path/to/webroot/files is a symlink to /path/to/something/outside/webroot then it does seem to work.
I would rather not link it directly within my webroot, how would I go about pointing files.domain.tld to /path/to/something/outside/webroot without getting a forbidden error?