[nycphp-talk] Apache document root location question
Cliff Hirsch
cliff at pinestream.com
Thu Sep 27 16:25:24 EDT 2007
I am bringing up a production server where the Apache document root is
currently: /srv/www/htdocs
Yet my application is in another directory and has its own public htdocs
directory. The php files in the public htdocs dir know that they are in a
subdir one level below the application directory, so I¹d rather not move
those files to /srv/www/htdocs. This helps with includes, requires, etc when
it comes to finding files in the correct filepath.
Should I just make my application htdocs dir the new document root? Or
should I make a symbolic link, alias, redirect or virtual host (always get
confused about which to use since they seem to achieve the same thing)? Or I
guess I could move my entire application to /srv/www, which would keep the
hierarchy intact.
Thoughts? Want to get this right for production....
Cliff
More information about the talk
mailing list