Skip to content

Documentation needs to have a Nginx step #15

Description

@kieranr

Documentation details at https://zimbra.github.io/documentation/zimbra-10/adminguide.html#_setting_up_nextcloud only works for Apache - so if your Nextcloud is behind Nginx instead, the apache directives :

RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]

are not applicable.

I've added a directive under
location ~ \.php(?:$|/) {

fastcgi_param Authorization $http_authorization;

so that this full section is:

` location ~ .php(?:$|/) {
# Required for legacy support
rewrite ^/(?!index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+|.+/richdocumentscode(_arm64)?/proxy) /index.php$request_uri;

    fastcgi_split_path_info ^(.+?\.php)(/.*)$;
    set $path_info $fastcgi_path_info;

    try_files $fastcgi_script_name =404;

    include fastcgi_params;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param PATH_INFO $path_info;
    fastcgi_param HTTPS on;

    fastcgi_param modHeadersAvailable true;         # Avoid sending the security headers twice
    fastcgi_param front_controller_active true;     # Enable pretty urls

    fastcgi_param Authorization $http_authorization;

    fastcgi_pass php-handler;

    fastcgi_intercept_errors on;
    fastcgi_request_buffering off;

    fastcgi_read_timeout 900;
    fastcgi_max_temp_file_size 0;
}`

Whilst this is working now, I am a little unconvinced

Can we have some direction on this please.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions