Skip to content

Commit

Permalink
Added installation instructions for Apache webserver
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Breidenstein authored Apr 16, 2020
1 parent dab6846 commit 0275031
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ composer require codemonauts/craft-basicauth
./craft install/plugin basicauth
```

### Apache
I you are using Apache to host your CraftCMS, you have to tell Apache to pass the `Authorization` header (which contains the basic auth data) to PHP (See the [Dokumenation](https://httpd.apache.org/docs/trunk/mod/core.html#cgipassauth)). Otherwise Craft will never see any credentials and will continue to show you the dialog to enter your username and password. This can either be set directly in the Apache config file or in your `.htaccess`:

```
CGIPassAuth on
```

## Credentials

On the settings page in the control panel you can add credentials to use for authentication.
Expand Down

0 comments on commit 0275031

Please sign in to comment.