260614d
# These are based on the .htaccess file shipped by ownCloud, with
260614d
# appropriate adjustments for distribution packaging. Some directives
260614d
# that are irrelevant to the Fedora/EPEL ecosystem are omitted. This
260614d
# file contains directives that should be applied within the /nextcloud
260614d
# filesystem; directives that should be applied site-wide when
260614d
# ownCloud is installed are placed directly in nextcloud.conf.
260614d
#
260614d
# DO NOT EDIT THIS FILE DIRECTLY. To override any element of the
260614d
# packaged ownCloud configuration, create a new /etc/httpd/conf.d/
260614d
# file which will be read later than 'nextcloud.conf'.
260614d
260614d
AllowOverride None
260614d
260614d
ErrorDocument 403 /nextcloud/core/templates/403.php
260614d
ErrorDocument 404 /nextcloud/core/templates/404.php
260614d
260614d
<IfModule mod_fcgid.c>
260614d
    <IfModule mod_setenvif.c>
260614d
        <IfModule mod_headers.c>
260614d
            SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
260614d
            RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
260614d
        </IfModule>
260614d
    </IfModule>
8ea470c
    <FilesMatch \.(php|phar)$>
8ea470c
        SetHandler "proxy:unix:/run/php-fpm/nextcloud.sock|fcgi://localhost"
8ea470c
    </FilesMatch>
260614d
</IfModule>
260614d
260614d
<IfModule mod_php5.c>
260614d
    php_value upload_max_filesize 10G
260614d
    php_value post_max_size 10G
260614d
    php_value memory_limit 512M
260614d
    php_value mbstring.func_overload 0
260614d
    php_value always_populate_raw_post_data -1
260614d
    php_value default_charset 'UTF-8'
260614d
    php_value output_buffering off
260614d
    <IfModule mod_env.c>
260614d
        SetEnv htaccessWorking true
260614d
    </IfModule>
260614d
</IfModule>
260614d
ff74a2f
<IfModule mod_php7.c>
ff74a2f
    php_value upload_max_filesize 10G
ff74a2f
    php_value post_max_size 10G
ff74a2f
    php_value memory_limit 512M
ff74a2f
    php_value mbstring.func_overload 0
ff74a2f
    php_value always_populate_raw_post_data -1
ff74a2f
    php_value default_charset 'UTF-8'
ff74a2f
    php_value output_buffering off
ff74a2f
    <IfModule mod_env.c>
ff74a2f
        SetEnv htaccessWorking true
ff74a2f
    </IfModule>
ff74a2f
</IfModule>
ff74a2f
260614d
# The rewrites for legacy caldav and carddav URLs are omitted here
260614d
# because they do not work with Fedora's ownCloud directory layout.
260614d
# See https://github.com/nextcloud/core/issues/243#issuecomment-75426453
260614d
<IfModule mod_rewrite.c>
260614d
    RewriteEngine on
260614d
    RewriteBase /nextcloud/
260614d
    RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
260614d
    RewriteRule ^remote/(.*) remote.php [QSA,L]
260614d
</IfModule>
260614d
260614d
AddDefaultCharset utf-8
260614d
Options -Indexes
260614d
260614d
<IfModule pagespeed_module>
260614d
    ModPagespeed Off
260614d
</IfModule>
260614d
260614d
<IfModule mod_headers.c>
260614d
    <FilesMatch "\.(css|js)$">
260614d
        Header set Cache-Control "max-age=7200, public"
260614d
    </FilesMatch>
260614d
</IfModule>