In a php script making /coderoot refer to /var/webroot/coderoot?
Posted
by Josh
on Server Fault
See other posts from Server Fault
or by Josh
Published on 2010-06-08T19:35:41Z
Indexed on
2010/06/08
19:42 UTC
Read the original article
Hit count: 230
We are migrating a server and have modified the architecture slightly so that instead of /var/coderoot we now have /var/webroot/coderoot - I realize I could do a scripted find and replace, but I would rather have full unmodified reverse compatibility, or if that's unreasonable lets just say for theories sake. I tried using a symmlink
ln -s /var/coderoot /var/webroot/coderoot
but attempting to include a file in the code root using /var/coderoot/file does not work. I also tried using mod_alias with ScriptAlias and Alias. Neither worked. Is there anyway to do this?
© Server Fault or respective owner