[Mageia-sysadm] [1010] add vhost for static.mageia.org
Michael Scherer
misc at zarb.org
Sat Feb 12 00:33:13 CET 2011
On Fri, 11 Feb 2011 19:25:39 +0100, nicolas vigier wrote:
> On Fri, 11 Feb 2011, Michael Scherer wrote:
>
>>> class websites {
>>> + class base {
>>> + # FIXME :
>>> + # We should be able to define this path on each host.
>>> + # Maybe using Facter ?
>>> + $webdatadir = '/srv/web1-dd0/www'
>>
>> This path is ugly and really do not help much to know what is there.
>> What is wrong with the /var/www we used everywhere ?
>
> This is where data partition is mounted on gandi VM. Maybe we can
> remount it in an other place. Or find a way to define a different
> path
> for this on each node.
Or use lvm, like any disk :
[root at champagne ~]# mount | grep xvdb
/dev/xvdb on /srv/web1-dd0 type ext3
(rw,nosuid,nodev,noatime,errors=continue,barrier=1,data=ordered)
This way, if we have a website that is bigger that 5go, we will not
have to do funky stuff when adding a 2nd drive.
If we move to a different server, we do not have left over.
--
Michael Scherer
More information about the Mageia-sysadm
mailing list