Modification : nginx root configurable.
[lhc/ateliers.git] / etc / nginx / site.d / agendav / site.conf
index 416468c..21f3e8f 100644 (file)
@@ -1,10 +1,12 @@
-server_name agendav.heureux-cyclage.org;
+server_name
+ agendav.heureux-cyclage.org
+ agendav.cyclocoop.org;
 
 client_body_buffer_size 8k;
 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 ~ /\. {
@@ -13,7 +15,7 @@ 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)$) {
@@ -48,7 +50,7 @@ location ~* ^.+\.php(|/.*)$ {
        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;