Remap Sub-Dir
From DreamHost
(Difference between revisions)
m (Replacing page with 'Use [https://panel.dreamhost.com/?tree=domain.mapsubdir "Domains') |
m (Reverted edits by XjfRkj (Talk); changed back to last version by Arancaytar) |
||
| Line 1: | Line 1: | ||
| − | Use [https://panel.dreamhost.com/?tree=domain.mapsubdir "Domains | + | Use [https://panel.dreamhost.com/?tree=domain.mapsubdir "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 <blockquote>'''http://www.domain.com/''' set up with the web directory '''/home/user/domain.com''' </blockquote> then <blockquote>'''http://www.domain.com/pictures/''' would get its content from '''/home/user/domain.com/pictures''' automatically. </blockquote> 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: <blockquote>'''http://www.domain.com/pictures/''' get its content from '''/home/otheruser/images''' </blockquote> 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, which is presently PHP 4.4.2. Software that requires PHP 5 cannot run in a remapped directory. | ||
| + | |||
| + | 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 [https://panel.dreamhost.com/?tree=domain.web "Domains > Web"]. | ||
| + | |||
| + | [[Category:Account Control Panel]] | ||
Revision as of 05:01, 22 June 2007
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 havehttp://www.domain.com/ set up with the web directory /home/user/domain.comthen
http://www.domain.com/pictures/ would get its content from /home/user/domain.com/pictures 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:
http://www.domain.com/pictures/ get its content from /home/otheruser/imagesBe 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, which is presently PHP 4.4.2. Software that requires PHP 5 cannot run in a remapped directory.
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".