Owncloud + Nginx + ISPCFG3

Discussion in 'Server Operation' started by Ovidiu, Mar 17, 2014.

  1. Ovidiu

    Ovidiu Active Member

    I see there are howtos for Owncloud but none deals specifically with ISPCFG3.

    If I install Owncloud via apt-get, it ends up in /var/www/owncloud so I tried creating a nginx snippet like I use for i.e. phpmyadmin or my webmail thus adding it to any site I like but it doesn't seem to work for Owncloud.

    i.e. here is my webmail snippet:

    Code:
    location /webmail {
                   root /var/www/;
                   index index.php index.html index.htm;
                   location ~ ^/webmail/(.+\.php)$ {
                           try_files $uri =404;
                           root /var/www/;
                           fastcgi_pass 127.0.0.1:9000;
                           fastcgi_index index.php;
                           fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                           include /etc/nginx/fastcgi_params;
                           fastcgi_buffer_size 128k;
                           fastcgi_buffers 256 4k;
                           fastcgi_busy_buffers_size 256k;
                           fastcgi_temp_file_write_size 256k;
                           fastcgi_intercept_errors on;
                   }
                   location ~* ^/webmail/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
                           root /var/www/;
                   }
            }
    I've inserted that into /usr/local/ispconfig/server/conf-custom/nginx_vhost.conf.master and it works perfectly.

    Is it possible to install Owncloud via apt-get and make it available to several customers while using ISPCFG3 or do I need to manually install it for each client?

    I'm also aware that there could be security issues, i.e. I'd probably need to make the /var/www/owncloud folders readable/writeable by www-data to allow multiple clients to use it?

    Any thoughts? Anyone using Owncloud for multiple clients on one server? How do you do it?
     
    Last edited: Mar 17, 2014
  2. Ovidiu

    Ovidiu Active Member

  3. Ovidiu

    Ovidiu Active Member

    anyone using Owncloud with ISPCFG3? Any advice at all?
     

Share This Page