• [^] # Re: Vous faites comment pour héberger un Owncloud accessible depuis Internet ?

    Posté par . En réponse à la dépêche Sortie d'ownCloud 7.x. Évalué à 2.

    Pour info, voilà ma configuration qui marche pour l'instant bien avec mon install de Owncloud :

    server {
     listen 443 ssl; ## listen for ipv4; this line is default and implied
     listen [::]:443 ssl; ## listen for ipv6
     root <directory>;
     index index.php;
     # Make site accessible from http://localhost/
     server_name <fqdn>;
     # Log
     access_log /var/log/nginx/owncloud-access.log;
     error_log /var/log/nginx/owncloud-error.log;
     ssl_certificate /srv/ssl/certs/<certificate>.crt;
     ssl_certificate_key /srv/ssl/keys/<certificate>.key;
     # Specific for Owncloud
     client_max_body_size 10G;
     fastcgi_buffers 64 4K;
     error_page 404 /core/templates/404.php;
     error_page 403 /core/templates/403.php;
     # Discovery
     #rewrite ^/.well-known/carddav(.*)$ /carddav1ドル redirect;
     #rewrite ^/.well-known/caldav(.*)$ /caldav1ドル redirect;
     # xDav protocols access
     rewrite ^/caldav(.*)$ /remote.php/caldav1ドル redirect;
     rewrite ^/carddav(.*)$ /remote.php/carddav1ドル redirect;
     rewrite ^/webdav(.*)$ /remote.php/webdav1ドル redirect;
     location / {
     # The following 2 rules are only needed with webfinger
     rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
     rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last;
     rewrite ^/.well-known/carddav /remote.php/carddav/ redirect;
     rewrite ^/.well-known/caldav /remote.php/caldav/ redirect;
     rewrite ^(/core/doc/[^\/]+/)$ 1ドル/index.html;
     # First attempt to serve request as file, then
     # as directory, then fall back to displaying a 404.
     try_files $uri $uri/ index.php;
     }
     # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
     #
     location ~ ^(.+?\.php)(/.*)?$ {
     try_files 1ドル =404;
     include fastcgi_params;
     fastcgi_split_path_info ^(.+\.php)(/.+)$;
     fastcgi_pass unix:/path/whois/the/socket/sock;
     fastcgi_param PATH_INFO 2ドル;
     fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
     fastcgi_param SCRIPT_FILENAME $document_root1ドル;
     fastcgi_param HTTPS on;
     }
     #include /directory/nginx/conf.d/global;
     include /directory/nginx/conf.d/error50x;
     include /directory/nginx/conf.d/htaccess;
     include /directory/nginx/conf.d/ctrl;
     include /directory/nginx/conf.d/ssl_params;
    }