Remap Sub-Dir

From DreamHost
Revision as of 04:43, 25 June 2009 by Kyrio (Talk | contribs)

Jump to: navigation, search

Use "Domains > Remap Sub-Dir" to make a sub-directory of your domain use a non-standard location in your file system its source for web content.

Normally if you have set up with the web directory /home/user/
then would get its content from /home/user/ automatically.
This area allows you to override this default setting and use any folder you'd like to provide content for sub-directories of your domain. It's great for sharing your domain among multiple ftp users. Now you could have: get its content from /home/otheruser/images

Be warned, CGI scripts won't work in sub-directories remapped to other user's home directories because of file ownership issues.

Note also that PHP scripts in remapped sub-directories - within your own home directory - can only run with the server's default PHP version.

Also, you can't use this area to change the web directory for an entire domain! To do that, just go to the "edit" link at "Domains > Web".

DreamHost PS


When using URL remapping on DreamHost PS together with Lighttpd and you are remapping to a different user you must not enable the enhanced security feature on the new user in order for the remap to work.