Delivereath
Dabbler
- Joined
- Mar 5, 2014
- Messages
- 36
Thanks for your insights guys. However, now I get the firefox popup to open or save the index.php file instead of properly processing it..Change the document root of the backend server config to match where your owncloud installation resides.
My nginx config file on the jail is the following :
Code:
- worker_processes 2;
- events {
- worker_connections 1024;
- }
- http {
- include mime.types;
- default_type application/octet-stream;
- sendfile off;
- keepalive_timeout 65;
- gzip off;
- server {
- root /usr/local/www/owncloud;
- location = /robots.txt { allow all; access_log off; log_not_found off; }
- location = /favicon.ico { access_log off; log_not_found off; }
- location ^~ /owncloud {
- index index.php;
- try_files $uri $uri/ /owncloud/index.php$is_args$args;
- fastcgi_intercept_errors on;
- error_page 403 /owncloud/core/templates/403.php;
- error_page 404 /owncloud/core/templates/404.php;
- client_max_body_size 512M;
- location ~ ^/owncloud/(?:\.|data|config|db_structure\.xml|README) {
- deny all;
- }
- location ~ \.php(?:$|/) {
- fastcgi_split_path_info ^(.+\.php)(/.*)$;
- fastcgi_pass unix:/var/run/php-fpm.sock;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- include fastcgi_params;
- fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED on;
- }
- location ~* \.(?:jpg|gif|ico|png|css|js|svg)$ {
- expires 30d; add_header Cache-Control public;
- }
- location ^~ /owncloud/data {
- internal;
- alias /mnt/files;
- }
- }
- }
- }