Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modHeadersAvailable override needed for systems using mod_suexec #11378

Closed
s09bQ5 opened this issue Sep 26, 2018 · 2 comments
Closed

modHeadersAvailable override needed for systems using mod_suexec #11378

s09bQ5 opened this issue Sep 26, 2018 · 2 comments

Comments

@s09bQ5
Copy link

s09bQ5 commented Sep 26, 2018

Steps to reproduce

  1. Run nextcloud on an Apache with mod_suexec, mod_env, and mod_headers

Expected behaviour

Headers like X-XSS-Protection are emitted only once and the admin panel does not show a security warning.

Actual behaviour

Headers like X-XSS-Protection are emitted twice and the admin panel shows a security warning.

Server configuration

mod_suexec
mod_env
mod_headers

Web server:
Apache

Nextcloud version: (see Nextcloud admin page)
13.0.6

mod_suexec drops modHeadersAvailable mod_suexec drops most environment variables, so Nextcloud does not see the modHeadersAvailable variable set by .htaccess and therefore tries to emit the headers again using the header() PHP function. The JavaScript check for these headers then fails because of the unexpected duplicates.

Since I am on a shared hosting, I can't disable mod_suexec. So what I would like to have is a configuration option to override the modHeadersAvailable check.

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #2231 (Need to be renamed...), #9005 (c), #5700 (Because Ubuntu using UUID in fstab, update needed to Webdav Tutorial), #76 (Setup translation system), and #3634 (quota validation needs to be improved).

@MorrisJobke
Copy link
Member

Duplicate of #8207

@MorrisJobke MorrisJobke marked this as a duplicate of #8207 Oct 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants