attempting to fix broken static files etc
This commit is contained in:
parent
3540a1677d
commit
20b494c3ac
1 changed files with 7 additions and 4 deletions
|
@ -51,13 +51,16 @@ server {
|
||||||
alias /usr/local/lib/owncloud/;
|
alias /usr/local/lib/owncloud/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /owncloud/.*\.php {
|
location ~ ^/owncloud/(.+?\.php)/? {
|
||||||
|
fastcgi_split_path_info ^/owncloud/(.+?\.php)(/?.*)$;
|
||||||
|
set $path_info $fastcgi_path_info;
|
||||||
|
# try_files $fastcgi_script_name = 404;
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
fastcgi_split_path_info ^/owncloud(/.*)()$;
|
|
||||||
fastcgi_index index.php;
|
|
||||||
fastcgi_param SCRIPT_FILENAME /usr/local/lib/owncloud/$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME /usr/local/lib/owncloud/$fastcgi_script_name;
|
||||||
|
fastcgi_param PATH_INFO $path_info;
|
||||||
|
fastcgi_param HTTPS on;
|
||||||
|
fastcgi_param SCRIPT_NAME /owncloud/$fastcgi_script_name;
|
||||||
fastcgi_pass unix:/tmp/php-fastcgi.www-data.sock;
|
fastcgi_pass unix:/tmp/php-fastcgi.www-data.sock;
|
||||||
client_max_body_size 20M;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/(data|config|\.ht|db_structure\.xml|README) {
|
location ~ ^/(data|config|\.ht|db_structure\.xml|README) {
|
||||||
|
|
Loading…
Reference in a new issue