Skip to content
Extraits de code Groupes Projets
Valider 4dd06625 rédigé par tsteur's avatar tsteur
Parcourir les fichiers

refs #3314 configured nginx, piwik is running now but mysqli is still missing

git-svn-id: http://dev.piwik.org/svn/trunk@6735 59fd770c-687e-43c8-a1e3-f5a4ff64c105
parent 8b784482
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
host {
"piwik.local":
ip => "127.0.0.1";
} # host
}
$piwik_domain = 'piwik.local'
$piwik_path = '/var/www/piwik'
$socket_path = "${piwik_path}/tmp/fpm.socket"
user { $piwik_domain:
ensure => present,
comment => $piwik_domain,
home => $piwik_path,
shell => '/bin/false',
}
php::fpm::pool { $piwik_domain:
pool_prefix => $piwik_path,
user => $piwik_domain,
group => $piwik_domain,
listen_type => 'socket',
listen => $socket_path,
socket_owner => 'www-data',
socket_group => 'www-data',
socket_mode => '0660',
catch_workers_output => 'yes',
}
$php_locations = {
"php-rewrite-${piwik_domain}" => {
location => '~ \.php$',
vhost => $piwik_domain,
try_files => '$uri =404',
fastcgi => "unix:${socket_path}",
}
}
node default {
class { 'nginx': }
nginx::resource::vhost { 'piwik.local':
nginx::resource::vhost { "${piwik_domain}":
ensure => present,
www_root => '/var/www/piwik',
www_root => $piwik_path,
listen_port => 8001,
locations => $php_locations
}
}
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter