Skip to content

Fixing authentication to servers without mod_rewrite (Webfaction) #294

@filipesaraiva

Description

@filipesaraiva

Hello NextCloud developers, I had this problem since the old times of ownCloud, and all the time when I need to update my ownCloud instance I need to apply this patch. It have the same behavior in NextCloud.

The problem is described here:

The main HTTP authentication examples in the PHP documentation don't work on our servers because we use php-cgi to serve your PHP sites.
The common workarounds for that problem involve setting a HTTP_AUTHENTICATION environment variable via mod_rewrite, but that doesn't work on our servers because our php-cgi environment runs on Apache with suExec, which does not pass environment variables to CGI scripts.

A developer created a patch to solve it. In past I submitted an issue and a pull request with this patch, but a developer talked the best way to fix it is creating an application to provide authentication using a specific method for this case.

Cheers;

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