Website path

Discussion in 'Installation/Configuration' started by almere, Nov 1, 2012.

  1. almere

    almere Member HowtoForge Supporter ISPConfig Developer

    Hi.

    Is it possible to change website path in server config (System->Server Config->Web). I`m running Nginx at Debian 6.

    I have now:
    /var/www/clients/client[client_id]/web[website_id]

    I would like:
    /var/www/clients/client[client_username]/web[website_domain]
    Or something like that.

    Here: http://bugtracker.ispconfig.org/index.php?do=details&task_id=674&opened=128&status[0]=

    It`s solved, what is the right syntax for it?

    Thank you

    Tim
     
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    If you would change the path to /var/www/clients/client[client_username]/web[website_domain] then the site would be destroyed when a client changes its client name or when a client changes the domain name of a site, only placeholders that will never change can be used in this path. ISPConfig uses generioc ID's for this to ensure that the path never changes when a domain name is cahnged and adds symlinks on the shell for easier navigation by domain name instead.

    The available placeholders are:

    [client_id]
    [client_idhash_1]
    [client_idhash_2]
    [client_idhash_3]
    [client_idhash_4]
     
  3. almere

    almere Member HowtoForge Supporter ISPConfig Developer

    [client_idhash_1]
    [client_idhash_2]
    [client_idhash_3]
    [client_idhash_4]
    Is this placeholders the same like [client_id] ?
     
  4. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    These placeholders split the clientID into chunks which might be nescessary if you have several thousand clients in your ispconfig cluster.
     
  5. almere

    almere Member HowtoForge Supporter ISPConfig Developer

    Thank you!

    But in any way. Where can i change it?)
     
  6. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    All available placeholders are listed in #2 of this thread and you can set the path which may include these placeholders under System > Server config in ispconfig.
     
  7. sharkey

    sharkey New Member

    Can I (and if so how) change the default path to /var/www? At least for the main account. (I don't plan on adding any other domains at the moment)

    Server Config says "Do not enable this option if your network interface is not eth0. " and mine is venet0
     
  8. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    You can try it but it might make problems. But you ma not add more then one website then on the server as the setup will fail as soon as you add a second one.

    Your server is a vserver, so you can not configure the network from within the virtual machine. The network is configured on the host server.
     

Share This Page