/web to /htdocs change for web-root (apache/nginx)

Discussion in 'Developers' Forum' started by ispcomm, Mar 28, 2013.

  1. ispcomm

    ispcomm Member

    Hello,

    This might be a silly question, but I'l looking to moving some sites to being managed with ispconfig.

    These sites are not owned by me so I must replicate all database users/passwords and directory paths (or they break).

    I need to change the default web root from /some/path/web to /some/path/htdocs

    That is... web root must be in a directory called "htdocs" and not "web".

    I can change all path with ispconfig, except the final "web" dir.

    I did some grepping in ispconfig and so far I seem to have found that the relevant paths are hard-coded in apache2_plugin.inc.php and nginx_plugin.inc

    For example here we have:
    $app->system->chmod($data['new']['document_root'].'/web';

    Falko: can I proceed with a patch? Shall I create a new placeholder defaulting to "web"?

    Thank you
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    This folder is called "web" in ispconfig and we dont plan to chnage it or make it configurable in the nextreleases. Just add a symlink "htdocs" in the web root that points to the "web" folder and your sites should work.

    > Falko: can I proceed with a patch? Shall I create a new placeholder defaulting to "web"?

    I'am not Falko, but I'am the maintainer of ispconfig.
     
  3. ispcomm

    ispcomm Member

    This is why I asked if it's something you would "like".
    :eek::eek::eek: Must have been smoking something :)

    Till... Till Tilll Tilll... I'll remember it now (I hope).
     

Share This Page