HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Website path (http://www.howtoforge.com/forums/showthread.php?t=59351)

almere 2nd November 2012 00:46

Website path
 
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/inde...status%5B0%5D=

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

Thank you

Tim

till 2nd November 2012 09:31

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]

almere 2nd November 2012 10:06

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

till 2nd November 2012 10:28

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

almere 2nd November 2012 10:34

Thank you!

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

till 2nd November 2012 12:38

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.

sharkey 7th November 2012 00:38

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

till 7th November 2012 09:16

Quote:

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)
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.

Quote:

Server Config says "Do not enable this option if your network interface is not eth0. " and mine is venet0
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.


All times are GMT +2. The time now is 15:49.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.