<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
-require_once('/home/www/pub/agendav/web/public/../application/config/production/advanced.php');
-require_once('/home/www/pub/agendav/web/public/../application/config/production/defaults.php');
+require_once('/home/www/data/agendav/web/public/../application/config/production/advanced.php');
+require_once('/home/www/data/agendav/web/public/../application/config/production/defaults.php');
$http_host = $_SERVER['HTTP_HOST'];
if (substr($http_host, 0, strlen("agendav.")) == "agendav.") {
$config['format_title_table'] = 'dddd, MMM d yyyy';
$config['format_title_week'] = "MMM d[ yyyy]{ '—'[ MMM] d yyyy}";
$config['log_path'] = '/home/www/log/php5/fpm/agendav/';
-if (file_exists("/home/www/pub/agendav/web/public/img/logo-$http_host.png")) {
+if (file_exists("/home/www/data/agendav/web/public/img/logo-$http_host.png")) {
$config['logo'] = "logo-$http_host.png";
}
else {
$config['logo'] = 'agendav_100transp.png';
}
-if (file_exists("/home/www/pub/agendav/web/public/img/logo-login-$http_host.png")) {
+if (file_exists("/home/www/data/agendav/web/public/img/logo-login-$http_host.png")) {
$config['login_page_logo'] = "logo-login-$http_host.png";
}
else {
client_max_body_size 10m;
location / {
- root /home/www/pub/agendav/web/public/;
+ root /home/www/data/agendav/web/public/;
index index.html index.htm index.php;
}
location ~ /\. {
log_not_found off;
}
location ~* ^.+\.php(|/.*)$ {
- root /home/www/pub/agendav/web/public/;
+ root /home/www/data/agendav/web/public/;
include /etc/nginx/conf.d/fastcgi.conf;
set $no_cache "0";
if ($request_method !~ ^(GET|HEAD)$) {
fastcgi_pass unix:/run/php5/fpm/agendav;
}
location ~* ^.+.(css|gif|html|ico|jpeg|js|jpg|png|txt|xml)$ {
- root /home/www/pub/agendav/web/public/;
+ root /home/www/data/agendav/web/public/;
access_log off;
expires 30d;
log_not_found off;
}
location ~ ^/julm/ {
auth_basic "ni dieu, ni maitre, ni moteur";
- auth_basic_user_file /home/www/pub/cyclocamp-www/julm/.htpasswd;
+ auth_basic_user_file /home/www/data/cyclocamp-www/julm/.htpasswd;
}
# vim: ft=sh
}],
banned_users => [],
srcdir => "/home/lhc/var/ikiwiki/remorque",
- destdir => "/home/www/pub/lhc-remorque",
+ destdir => "/home/www/data/lhc-remorque",
#templatedir => "/home/lhc/var/ikiwiki/remorque/tmpl",
templatedir => '/usr/share/ikiwiki/templates',
underlaydir => '/usr/share/ikiwiki/basewiki',
gitmaster_branch => "master",
wrappers => [
{ cgi => 1
- , wrapper => "/home/www/pub/lhc-remorque/cgi/ikiwiki.cgi"
+ , wrapper => "/home/www/data/lhc-remorque/cgi/ikiwiki.cgi"
, wrappermode => "00750"
}
, { post_commit => 1
--disabled-login \
--disabled-password \
--group \
- --home /home/www/pub/"$site" \
+ --home /home/www/data/"$site" \
--shell /bin/false \
--system
"$tool"/local/adduser www-"$site" \
--disabled-login \
--disabled-password \
--group \
- --home /home/www/pub/"$site" \
+ --home /home/www/data/"$site" \
--shell /bin/false \
--system
sudo adduser fcgi-"$site" www-"$site"
/home/lhc/var/ikiwiki/remorque/etc/ikiwiki.setup
sudo adduser wiki-"$site" www-"$site"
sudo install -d -m 2770 -o wiki-"$site" -g fcgi-"$site" \
- /home/www/pub/"$site"/cgi
+ /home/www/data/"$site"/cgi
cd /
sudo -u wiki-"$site" ikiwiki \
--verbose \
ra.heureux-cyclage.org;
auth_basic "pour demander un compte: admin@heureux-cyclage.org";
-auth_basic_user_file /home/www/pub/lhc-remorque/.htpasswd;
+auth_basic_user_file /home/www/data/lhc-remorque/.htpasswd;
client_body_buffer_size 8k;
client_max_body_size 10m;
-server_name
+server_name
ptitvelo.heureux-cyclage.org
www.ptitvelo.net
ptitvelo.net;
+root /home/www/data/ptitvelo-www/www;
client_body_buffer_size 8k;
client_max_body_size 10m;
deny all;
}
location ~ ^/images/.+(png) {
- root /home/www/pub/roundcube;
+ root /home/www/data/roundcube;
access_log off;
expires 30d;
log_not_found off;
// replace Roundcube logo with this image
// specify an URL relative to the document root of this Roundcube installation
-if (file_exists("/home/www/pub/roundcube/images/logo-$http_host.png")) {
+if (file_exists("/home/www/data/roundcube/images/logo-$http_host.png")) {
$rcmail_config['skin_logo'] = "./images/logo-$http_host.png";
}
else {
--disabled-login \
--disabled-password \
--group \
- --home /home/www/pub/"$site" \
+ --home /home/www/data/"$site" \
--shell /bin/false \
--system
"$tool"/local/adduser log-www-"$site" \
/etc/nginx/site.d/"$site"
sudo install -d -m 770 -o www -g www \
/etc/nginx/x509.d/"$site"
- sudo test -L /home/www/pub/"$site" ||
+ sudo test -L /home/www/data/"$site" ||
sudo install -d -m 2770 -o www-"$site" -g www-"$site" \
- /home/www/pub/"$site"
+ /home/www/data/"$site"
sudo adduser www-data www-"$site"
sudo adduser www-data log-www-"$site"
sudo install -m 660 -o www -g www \
server {
access_log /home/www/log/$site/nginx/access.log main;
error_log /home/www/log/$site/nginx/error.log warn;
- root /home/www/pub/$site;
+ $(if ! grep -q '^root\>' "$tool"/etc/nginx/site.d/"$site"/site.conf
+ then printf 'root %s;' /home/www/data/"$site"
+ fi)
include /etc/nginx/site.d/$site/local.conf;
include /etc/nginx/site.d/$site/site.conf;
}
#sudo adduser www www-data
sudo adduser www log-www
#sudo adduser log log-www
-usermod --home /home/www/pub www-data
+usermod --home /home/www/data www-data
sudo install -d -m 751 -o www -g www \
/home/www
sudo install -d -m 750 -o www -g www \
/home/www/etc
sudo install -d -m 1771 -o www-data -g www-data \
- /home/www/pub
+ /home/www/data
sudo install -d -m 1771 -o log-www -g log-www \
/home/www/log