awshosteddokuwiki
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| awshosteddokuwiki [2025/07/20 05:51] – [Create CloudFront Distribution] - update after login issues sjoerd | awshosteddokuwiki [2026/01/08 20:46] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 403: | Line 403: | ||
| * You have divergent branches and need to specify how to reconcile them. | * You have divergent branches and need to specify how to reconcile them. | ||
| * Solution: {{{git config --global pull.rebase true}}} | * Solution: {{{git config --global pull.rebase true}}} | ||
| + | * Fatal: Not possible to fast-forward, | ||
| + | * Solution: {{{git pull --rebase}}} | ||
| Always when you want to work with git on the server, follow the following steps: | Always when you want to work with git on the server, follow the following steps: | ||
| Line 497: | Line 499: | ||
| * Cache policy: CachingDisabled | * Cache policy: CachingDisabled | ||
| - | > Note: With the latest dokuwiki version I kept having trouble with logging in. I had to create CloudFront Invalidations {{{/*}}} all the time to be able to log in. I removed all behaviors except for the default. After that it started working again. | + | > Note: With the latest dokuwiki version I kept having trouble with logging in. I had to create CloudFront Invalidations |
| Once you've saved the changes the distribution needs to be deployed again, which can take a few minutes. Note that, depending on already cached pages it might take a while for dokuwiki to work completely as expected. | Once you've saved the changes the distribution needs to be deployed again, which can take a few minutes. Note that, depending on already cached pages it might take a while for dokuwiki to work completely as expected. | ||
| Line 521: | Line 523: | ||
| * Click on ' | * Click on ' | ||
| * Name: wiki.getshifting.com-20250707 | * Name: wiki.getshifting.com-20250707 | ||
| + | |||
| + | == Logs == | ||
| + | |||
| + | In the next step we will configure monitoring using AWS CloudWatch, in which we will also send the logs to Cloudwatch. For this we will change the format and naming of the apache logfiles, so we need to change [[https:// | ||
| + | |||
| + | Let's start with an overview of the logfiles we are interested in: | ||
| + | |||
| + | * Apache access log: {{{/ | ||
| + | * Apache error log: {{{/ | ||
| + | * Dokuwiki error log: {{{/ | ||
| + | * This file is already [[https:// | ||
| + | * Debian package log: {{{/ | ||
| + | * This file is already rotated by logrotate, so we don't need to change anything here | ||
| + | |||
| + | To change the logrotation for the apache logfiles, we need to change the logrotate settings file for apache located at {{{/ | ||
| + | |||
| + | //Original file content:// | ||
| + | < | ||
| + | / | ||
| + | weekly | ||
| + | rotate 150 | ||
| + | dateext | ||
| + | compress | ||
| + | copytruncate | ||
| + | missingok | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | //Modified file content:// | ||
| + | < | ||
| + | / | ||
| + | weekly | ||
| + | rotate 26 | ||
| + | dateext | ||
| + | compress | ||
| + | copytruncate | ||
| + | missingok | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | Note that if any logfile are already present in {{{/ | ||
| == Next Steps == | == Next Steps == | ||
| Line 554: | Line 597: | ||
| * The dokuwiki login doesn' | * The dokuwiki login doesn' | ||
| + | |||
| + | //This wiki has been made possible by:// | ||
| + | |||
| + | < | ||
| + | <script async src=" | ||
| + | | ||
| + | <!-- Wiki End of Page --> | ||
| + | <ins class=" | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | < | ||
| + | | ||
| + | </ | ||
| + | </ | ||
awshosteddokuwiki.1752990680.txt.gz · Last modified: by sjoerd
